[Mapbender-commits] r8478 - branches/2.7/http/javascripts trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Sep 4 00:11:45 PDT 2012


Author: verenadiewald
Date: 2012-09-04 00:11:45 -0700 (Tue, 04 Sep 2012)
New Revision: 8478

Modified:
   branches/2.7/http/javascripts/mod_wfs_SpatialRequest.php
   trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php
Log:
unbinding mouse events in wfsEnable and wfsDisable function breaks jquery ui dialogs draggable and resizable functionality

Modified: branches/2.7/http/javascripts/mod_wfs_SpatialRequest.php
===================================================================
--- branches/2.7/http/javascripts/mod_wfs_SpatialRequest.php	2012-09-03 06:48:37 UTC (rev 8477)
+++ branches/2.7/http/javascripts/mod_wfs_SpatialRequest.php	2012-09-04 07:11:45 UTC (rev 8478)
@@ -207,10 +207,13 @@
 function wfsEnable(obj) {
 	var el = getMapDoc();
 
+/*
+    //This seems completely useless, and breaks jquery Dialogs
 	$(el).unbind("mousedown")
 		.unbind("mouseover")
 		.unbind("mouseup")
 		.unbind("mousemove");
+*/
 
 	if (obj.id == button_point) {
 		if (activeButton == null) {
@@ -291,9 +294,14 @@
 function wfsDisable(obj) {
 	var ind = getMapObjIndexByName("mapframe1");
 	var el = mb_mapObj[ind].getDomElement();
+
+/*
+    //This seems completely useless, and breaks jquery Dialogs
 	$(el).unbind("mousedown")
 		.unbind("click")
 		.unbind("mousemove");
+*/
+
 	activeButton = null;
 	writeTag("","measure_display","");
 	writeTag("","measure_sub","");

Modified: trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php	2012-09-03 06:48:37 UTC (rev 8477)
+++ trunk/mapbender/http/javascripts/mod_wfs_SpatialRequest.php	2012-09-04 07:11:45 UTC (rev 8478)
@@ -207,10 +207,13 @@
 function wfsEnable(obj) {
 	var el = getMapDoc();
 
+/*
+    //This seems completely useless, and breaks jquery Dialogs
 	$(el).unbind("mousedown")
 		.unbind("mouseover")
 		.unbind("mouseup")
 		.unbind("mousemove");
+*/
 
 	if (obj.id == button_point) {
 		if (activeButton == null) {
@@ -291,9 +294,14 @@
 function wfsDisable(obj) {
 	var ind = getMapObjIndexByName("mapframe1");
 	var el = mb_mapObj[ind].getDomElement();
+	
+/*
+    //This seems completely useless, and breaks jquery Dialogs
 	$(el).unbind("mousedown")
 		.unbind("click")
 		.unbind("mousemove");
+*/
+
 	activeButton = null;
 	writeTag("","measure_display","");
 	writeTag("","measure_sub","");



More information about the Mapbender_commits mailing list