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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jan 7 05:52:31 EST 2010


Author: verenadiewald
Date: 2010-01-07 05:52:30 -0500 (Thu, 07 Jan 2010)
New Revision: 5295

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
new event beforeUpdateOrInsert

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2010-01-06 16:03:05 UTC (rev 5294)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2010-01-07 10:52:30 UTC (rev 5295)
@@ -161,7 +161,8 @@
 		});
 	}
 	parent.Mapbender.modules[mod_digitize_elName].events = {
-		closeGeometry: eventCloseGeometry
+		closeGeometry: eventCloseGeometry,
+		beforeUpdateOrInsert: new parent.Mapbender.Event()
 	};
 });
 
@@ -2254,6 +2255,10 @@
 			fid = d.get(m).e.getElementValueByName('fid');
 		}
 //		str = parent.get_wfs_str(myconf, d, m, type, fid);
+
+		parent.Mapbender.modules[mod_digitize_elName].events.beforeUpdateOrInsert.trigger({
+			feature: d.get(m)
+		});
 		
 		var geoJson = d.featureToString(m);
 		



More information about the Mapbender_commits mailing list