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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Feb 14 11:47:50 EST 2011


Author: kmq
Date: 2011-02-14 08:47:50 -0800 (Mon, 14 Feb 2011)
New Revision: 7600

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
use jquery events for cross browser compatability

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2011-02-14 16:37:52 UTC (rev 7599)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2011-02-14 16:47:50 UTC (rev 7600)
@@ -787,13 +787,13 @@
 	if(mod_digitizeEvent == button_move){
 		mod_digitize_timeout();
 		basepointObject.style.cursor = 'move';
-		basepointObject.onmousedown = parent.frames[mod_digitize_elName].selectBasepoint;
+		parent.$(basepointObject).bind("mousedown", parent.frames[mod_digitize_elName].selectBasepoint);
 	}
 
 	if(mod_digitizeEvent == button_delete){
 		mod_digitize_timeout();
 		basepointObject.style.cursor = 'crosshair';
-		basepointObject.onmousedown = parent.frames[mod_digitize_elName].deleteBasepoint;
+		parent.$(basepointObject).bind("mousedown", parent.frames[mod_digitize_elName].deleteBasepoint);
 	}
 }
 
@@ -873,8 +873,8 @@
 			basepointObject.style.backgroundColor = 'transparent';
 		}
 
-		basepointObject.onmouseup = releaseBasepoint;
-		basepointObject.onmousemove = dragBasepoint;
+		parent.$(basepointObject).bind("mouseup", releaseBasepoint);
+		parent.$(basepointObject).bind("mousemove", dragBasepoint);
 	}
 }
 
@@ -905,7 +905,7 @@
 	
 	var currentPos = getMousePosition(e);
 	var basepointDragEnd = currentPos;
-	basepointObject.onmousedown = null;
+	parent.$(basepointObject).unbind("mousedown");
 	var ind = parent.getMapObjIndexByName(mod_digitize_target);
 	var p = parent.mb_mapObj[ind].convertPixelToReal(new Point(basepointDragEnd.x, basepointDragEnd.y));
 
@@ -2336,6 +2336,9 @@
 	// if wfs_conf is not yet set (for example when creating a new feature, just select the first one)
 	var selectedIndex = d.get(geometryIndex).wfs_conf || 0;
 	for (var i = 0; i < wfsConfIndices.length ; i++) {
+		for (var j in wfsConf[i].element){
+
+		}
 		str += "<option value='" + wfsConfIndices[i] + "'";
 		if (i == selectedIndex ) {
 			str += " selected";



More information about the Mapbender_commits mailing list