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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jul 1 06:50:23 PDT 2014


Author: hwbllmnn
Date: 2014-07-01 06:50:23 -0700 (Tue, 01 Jul 2014)
New Revision: 8962

Modified:
   trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
leave edit mode when opening sketch dialog


Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php	2014-07-01 13:45:29 UTC (rev 8961)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php	2014-07-01 13:50:23 UTC (rev 8962)
@@ -605,7 +605,12 @@
             menu.menu('destroy').remove();
         });
         menu.children('li:has(.digitize-add,.digitize-pencil)').bind('click', function() {
+            editDialog.dialog('close');
+            attributesDialog.dialog('close');
+            editStyleDialog.dialog('close');
+
             digitizeDialog.dialog('open');
+
             digitizeDialog.find('.digitize-add,.digitize-pencil').bind('click', function() {
                 $(this).next().toggleClass('digitize-hidden');
             });
@@ -718,6 +723,9 @@
         var mode = status.match(/(new|edit)-.+/)[1];
 
         if(mode === 'new') {
+            editDialog.dialog('close');
+            attributesDialog.dialog('close');
+            editStyleDialog.dialog('close');
             if (o.$target.size() > 0) {
                 o.type = status.match(/new-(.+)/)[1];
                 o.editedFeature = null;



More information about the Mapbender_commits mailing list