[Mapbender-commits] r4891 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Oct 30 07:37:34 EDT 2009


Author: christoph
Date: 2009-10-30 07:37:34 -0400 (Fri, 30 Oct 2009)
New Revision: 4891

Modified:
   trunk/mapbender/http/javascripts/mod_legend.php
Log:


Modified: trunk/mapbender/http/javascripts/mod_legend.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_legend.php	2009-10-30 11:36:31 UTC (rev 4890)
+++ trunk/mapbender/http/javascripts/mod_legend.php	2009-10-30 11:37:34 UTC (rev 4891)
@@ -90,7 +90,7 @@
 	obj.style.left = mod_legend_target_left + mod_legend_target_width + mod_legend_offsetLeft; 
 	var checkobj = document.getElementById("checkboxstyle");
 	if (checkbox_on_off == 'false'){
-		checkobj.style.visibility = "hidden";
+		checkobj.style.display = "none";
 		checkobj.style.width = 0;
 		checkobj.style.height = 0;
 	}
@@ -98,7 +98,7 @@
 
 function mod_legend_repaint(obj){
 	var checkobj = document.getElementById("checkboxstyle");
-	if(checkobj.style.visibility == "visible"){
+	if(checkobj.style.display == "block"){
 		mod_legend_pos();     
 	}
 }
@@ -181,7 +181,7 @@
 <form>
 
 <span class='switch'>
-<div id="checkboxstyle" style="visibility:visible;">on/off<input type='checkbox' name='sw' checked='true' onclick='mod_legend_repaint(this)'></div>
+<div id="checkboxstyle" style="display:block;">on/off<input type='checkbox' name='sw' checked='true' onclick='mod_legend_repaint(this)'></div>
 </span>
 <div name='leg' id='leg' ></div>
 



More information about the Mapbender_commits mailing list