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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jul 1 06:58:00 PDT 2014


Author: hwbllmnn
Date: 2014-07-01 06:58:00 -0700 (Tue, 01 Jul 2014)
New Revision: 8963

Modified:
   trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
removed most buttons from sketch dialog, fixed not being able to open edit dialog a second time


Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php	2014-07-01 13:50:23 UTC (rev 8962)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php	2014-07-01 13:58:00 UTC (rev 8963)
@@ -68,17 +68,10 @@
 var DigitizeApi = function (o) {
 
     var digitizeHtml = '<div title="Sketch">' +
-        '<div class="digitize-image digitize-pencil"></div>' +
-        '<fieldset class="fieldset-auto-width digitize-hidden">' +
-        '<div class="digitize-image digitize-cursor"></div>' +
-        '<div class="digitize-image digitize-remove"></div>' +
-        '</fieldset>' +
-        '<div class="digitize-image digitize-add"></div>' +
-        '<fieldset class="fieldset-auto-width digitize-hidden">' +
         '<div class="digitize-image digitize-point"></div>' +
         '<div class="digitize-image digitize-line"></div>' +
         '<div class="digitize-image digitize-polygon"></div>' +
-        '</fieldset></div>';
+        '</div>';
 
     var editHtml = '<div title="Edit feature">' +
         '<div class="digitize-preview"></div>' +
@@ -611,9 +604,6 @@
 
             digitizeDialog.dialog('open');
 
-            digitizeDialog.find('.digitize-add,.digitize-pencil').bind('click', function() {
-                $(this).next().toggleClass('digitize-hidden');
-            });
             digitizeDialog.find('.digitize-point').bind('click', function() {
                 status = 'new-point';
                 $(this).addClass('active').siblings().removeClass('active');
@@ -718,8 +708,10 @@
     };
 
     this.activate = function () {
-        mb_disableButton('img');
-        btnelem[0].status = 1;
+        if(!btnelem[0].status === 1) {
+            mb_disableButton('img');
+            btnelem[0].status = 1;
+        }
         var mode = status.match(/(new|edit)-.+/)[1];
 
         if(mode === 'new') {



More information about the Mapbender_commits mailing list