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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Apr 3 01:50:07 EDT 2009


Author: christoph
Date: 2009-04-03 01:50:07 -0400 (Fri, 03 Apr 2009)
New Revision: 3845

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
http://trac.osgeo.org/mapbender/ticket/421

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2009-03-30 13:52:15 UTC (rev 3844)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2009-04-03 05:50:07 UTC (rev 3845)
@@ -203,12 +203,12 @@
 //		s.clean();
 	}
 
-	var el = mapWindow.document;
+	var el = mapDomElement;
 	el.onmousedown = mod_digitize_start;
 }
 
 function mod_digitize_timeout(){
-	var el = mapWindow.document;
+	var el = mapDomElement;
 	el.onmousedown = null;
 	el.onmouseup = null;
 	el.onmousemove = null;
@@ -718,7 +718,7 @@
 				obj.id == button_split || obj.id == button_merge ||
 				obj.id == button_difference){
 					
-		var el = mapWindow.document;
+		var el = mapDomElement;
 		el.onmousemove = mod_digitize_go;
 
 		mod_digitizeEvent = obj.id;
@@ -1219,7 +1219,7 @@
 
 					// button clone this geometry
 					if (addCloneGeometryButton === true) {
-						listOfGeom += "<img src = '"+buttonDig_imgdir+buttonDig_clone_src+"' title='"+msgObj.buttonDig_clone_title+"' onclick='d.addCopy(d.get("+i+"));executeDigitizeSubFunctions();'>";
+						listOfGeom += "<img src = '"+buttonDig_imgdir+buttonDig_clone_src+"' title='"+msgObj.buttonDig_clone_title+"' onclick='d.addCopy(d.get("+i+"));d.get(-1).e.delElement(\"fid\");executeDigitizeSubFunctions();'>";
 					}
 				}
 					



More information about the Mapbender_commits mailing list