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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Oct 26 08:37:55 EDT 2007


Author: christoph
Date: 2007-10-26 08:37:55 -0400 (Fri, 26 Oct 2007)
New Revision: 1752

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
more sophisticated initialising

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2007-10-26 11:33:57 UTC (rev 1751)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2007-10-26 12:37:55 UTC (rev 1752)
@@ -377,8 +377,6 @@
 	}
 	parent.mb_registerInitFunctions("window.frames['"+ mod_digitize_elName + "'].initialiseMeasure()");
 	parent.mb_registerSubFunctions("window.frames['" + mod_digitize_elName + "'].updateExtent()");
-	parent.mb_registerSubFunctions("window.frames['"+ mod_digitize_elName + "'].drawDashedLine()");
-	parent.mb_registerSubFunctions("window.frames['"+ mod_digitize_elName + "'].updateMeasureTag()");
 	parent.mb_registerWfsReadSubFunctions(function(geom){parent.tab_open(mod_digitize_elName);parent.window.frames[mod_digitize_elName].appendGeometryArray(geom);});
 	parent.mb_registerWfsWriteSubFunctions(function(){parent.zoom(mod_digitize_target, true, 0.999);});
 }
@@ -389,6 +387,7 @@
 	 
 	digitizeDivTag = new parent.DivTag(digitizeTagName, mod_digitize_target, digitizeTagStyle);
 	parent.mb_registerPanSubElement(digitizeTagName);
+	parent.mb_registerSubFunctions("window.frames['"+ mod_digitize_elName + "'].drawDashedLine()");
 }
 
 
@@ -409,6 +408,7 @@
 }
 function initialiseMeasure(){
 	measureDivTag = new parent.DivTag(measureTagName, measureTagTarget, measureTagStyle);
+	parent.mb_registerSubFunctions("window.frames['"+ mod_digitize_elName + "'].updateMeasureTag()");
 }
 // --- registered functions (end) -----------------------------------------------------------------------------------------
 // ------------------------------------------------------------------------------------------------------------------------



More information about the Mapbender_commits mailing list