[Mapbender-commits] r6427 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Jun 25 03:49:22 EDT 2010
Author: verenadiewald
Date: 2010-06-25 07:49:22 +0000 (Fri, 25 Jun 2010)
New Revision: 6427
Modified:
trunk/mapbender/http/javascripts/mod_legend.php
Log:
target for mod_legend_pos in mod_legend_repaint to use the on/off checkbox for legend
Modified: trunk/mapbender/http/javascripts/mod_legend.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_legend.php 2010-06-25 07:32:16 UTC (rev 6426)
+++ trunk/mapbender/http/javascripts/mod_legend.php 2010-06-25 07:49:22 UTC (rev 6427)
@@ -98,7 +98,7 @@
function mod_legend_repaint(obj){
var checkobj = document.getElementById("checkboxstyle");
if(checkobj.style.display == "block"){
- mod_legend_pos();
+ mod_legend_pos(mod_legend_target);
}
}
@@ -110,7 +110,7 @@
if(stickylegend == 'true'){
obj.style.left = parseInt(parent.mb_mapObj[ind].width) + mod_legend_target_left + mod_legend_offsetLeft;
}
-
+ console.log(document.forms[0].sw.checked);
if(document.forms[0].sw.checked == false){
parent.writeTag("legend", "leg", "");
return true;
More information about the Mapbender_commits
mailing list