From: Jan Michel Date: Sun, 4 Aug 2013 14:59:17 +0000 (+0200) Subject: alternate stylesheet for jtageditor X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=fdbc88df5b71cab8401696611498365d30a6a1f9;p=mvdsensorcontrol.git alternate stylesheet for jtageditor --- diff --git a/tools/jtageditor.pl b/tools/jtageditor.pl index 1111a72..f7c574d 100755 --- a/tools/jtageditor.pl +++ b/tools/jtageditor.pl @@ -738,14 +738,14 @@ getdata('$me?print=fileSelection&configFile='+file_,'fileSelection',false); function toggleVis(elementId,t) { if(document.getElementById(elementId)){ -if( document.getElementById(elementId).style.maxHeight == "600px") { - //document.getElementById(elementId).style.visibility = "collapse"; - document.getElementById(elementId).style.maxHeight = "1px"; +if( document.getElementById(elementId).style.visibility == "visible") { + document.getElementById(elementId).style.visibility = "collapse"; + document.getElementById(elementId).style.height = "0px"; visHash[elementId]=false; t.innerHTML = " + "; } else { document.getElementById(elementId).style.visibility = "visible" ; - document.getElementById(elementId).style.maxHeight = "600px"; + document.getElementById(elementId).style.height = "auto"; visHash[elementId]=true; t.innerHTML = " − "; } @@ -754,14 +754,14 @@ if( document.getElementById(elementId).style.maxHeight == "600px") { function showElement(elementId) { if(document.getElementById(elementId)){ document.getElementById(elementId).style.visibility = "visible" ; - document.getElementById(elementId).style.maxHeight = "600px"; + document.getElementById(elementId).style.height = "auto"; visHash[elementId]=true; } } function hideElement(elementId) { if(document.getElementById(elementId)){ - //document.getElementById(elementId).style.visibility = "hidden" ; - document.getElementById(elementId).style.maxHeight = "1px"; + document.getElementById(elementId).style.visibility = "hidden" ; + document.getElementById(elementId).style.height = "0px"; visHash[elementId]=false; } }