Skip to content
Snippets Groups Projects
Commit a816e950 authored by efalcy's avatar efalcy
Browse files

hotline #63041 : fix js detection error on display for bloc_contenu div

parent b6e8763d
Branches
Tags
4 merge requests!2334Master,!2269Master,!2268Hotline master,!2263Hotline#63041 boites onglets ne se referment pas
Pipeline #2144 passed with stage
in 16 minutes and 17 seconds
- ticket #63041 : boites "onglets" : ne se referment pas
\ No newline at end of file
......@@ -85,23 +85,23 @@ if (undefined == window.blocNoticeAfterLoad)
function infos_bloc(sIdBloc,sIsbn,sType,sCherche,nNiveau,nPage, sUrl) {
if(sIdBloc.substr(0,1) == "I" ) sIdBloc=sIdBloc.substr(1,sIdBloc.length);
oImg=document.getElementById("I" + sIdBloc);
oContenu=document.getElementById(sIdBloc + "_contenu");
oParent = oImg.parentNode.parentNode;
if(oContenu.style.display =="block" && !sCherche) {
var oImg=document.getElementById("I" + sIdBloc);
var oParent = oImg.parentNode.parentNode;
var bloc = $('#'+sIdBloc + '_contenu');
if(bloc.is(':visible') && !sCherche) {
oImg.setAttribute("src", imagesUrl + "bouton/plus_carre.gif");
oParent.className = oParent.className.replace(/\b deplier\b/,'');
$(oContenu).slideUp();
bloc.slideUp();
return;
}
oImg.setAttribute("src", imagesUrl + "bouton/moins_carre.gif");
oParent.className= oParent.className+" deplier";
$(oContenu).slideDown();
nPos=sIdBloc.lastIndexOf("_");
nIdNotice=sIdBloc.substr(5,nPos-5);
bloc.slideDown();
var nPos=sIdBloc.lastIndexOf("_");
var nIdNotice=sIdBloc.substr(5,nPos-5);
if (sUrl == undefined)
sUrl=baseUrl + '/opac/noticeajax/'+ sType;
......@@ -109,7 +109,7 @@ function infos_bloc(sIdBloc,sIsbn,sType,sCherche,nNiveau,nPage, sUrl) {
if(sCherche) sUrl = sUrl + '&cherche=' + sCherche;
var bloc = $('#'+sIdBloc + '_contenu');
var width = bloc.width();
sUrl = sUrl + '&width='+width;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment