[Mapbender-commits] r8986 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Jul 4 05:17:02 PDT 2014


Author: hwbllmnn
Date: 2014-07-04 05:17:02 -0700 (Fri, 04 Jul 2014)
New Revision: 8986

Modified:
   trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
properly remove geometry when closing attributes dialog without saving


Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php	2014-07-04 11:58:18 UTC (rev 8985)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php	2014-07-04 12:17:02 UTC (rev 8986)
@@ -237,6 +237,13 @@
             $(this).find('.digitize-image').unbind('click');
         });
 
+        attributesDialog.parent().find('a > span.ui-icon-closethick').bind('click', function() {
+            if(status == 'created-new') {
+                status = 'none';
+                $('#mapframe1').data('mb_digitize').destroy();
+            }
+        });
+
         editStyleDialog = $(editStyleHtml);
         editStyleDialog.dialog({
             autoOpen: false,
@@ -676,7 +683,7 @@
     var finishDigitize = function () {
         inProgress = false;
         that.deactivate();
-        status = 'none';
+        status = 'created-new';
 
         var kml = $('#mapframe1').data('kml');
         if(kml) {



More information about the Mapbender_commits mailing list