[Mapbender-commits] r5418 - branches/2.6/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Jan 25 04:36:32 EST 2010
Author: christoph
Date: 2010-01-25 04:36:31 -0500 (Mon, 25 Jan 2010)
New Revision: 5418
Modified:
branches/2.6/http/javascripts/mod_legend.php
Log:
Modified: branches/2.6/http/javascripts/mod_legend.php
===================================================================
--- branches/2.6/http/javascripts/mod_legend.php 2010-01-25 09:36:12 UTC (rev 5417)
+++ branches/2.6/http/javascripts/mod_legend.php 2010-01-25 09:36:31 UTC (rev 5418)
@@ -90,7 +90,8 @@
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.visibility = "hidden";
+ checkobj.style.display = "none";
checkobj.style.width = 0;
checkobj.style.height = 0;
}
@@ -98,7 +99,7 @@
function mod_legend_repaint(obj){
var checkobj = document.getElementById("checkboxstyle");
- if(checkobj.style.visibility == "visible"){
+ if(checkobj.style.display == "none"){
mod_legend_pos();
}
}
@@ -181,7 +182,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