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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Oct 20 07:52:02 EDT 2009


Author: christoph
Date: 2009-10-20 07:52:01 -0400 (Tue, 20 Oct 2009)
New Revision: 4803

Modified:
   trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
code conventions

Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php	2009-10-20 11:51:30 UTC (rev 4802)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php	2009-10-20 11:52:01 UTC (rev 4803)
@@ -1013,8 +1013,11 @@
 }
 
 function digitizeDisable(obj) {
-	if (obj.id == button_point || obj.id == button_line || obj.id == button_polygon){
+	if (obj.id == button_point || obj.id == button_line || 
+		obj.id == button_polygon){
 		obj.title = obj.title_off;
+
+		// remove geometries without basepoints
 		if (d.get(-1).get(-1).count() == 0) {
 			d.delGeometry(-1,-1);
 		}
@@ -2150,9 +2153,11 @@
 	} 
 	parent.mb_execWfsWriteSubFunctions();
 
-	if (updatePointGeometriesInstantly && status == "success" && success &&
+	if (updatePointGeometriesInstantly && 
+		status == "success" && 
+		success && 
 		typeof callback === "function") {
-		callback();		
+			callback();		
 	}
 
 	executeDigitizeSubFunctions();



More information about the Mapbender_commits mailing list