[Mapbender-commits] r8901 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu May 22 05:28:31 PDT 2014
Author: hwbllmnn
Date: 2014-05-22 05:28:31 -0700 (Thu, 22 May 2014)
New Revision: 8901
Modified:
trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
enable opening of style dialog from attributes and edit dialogs
Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-22 12:14:43 UTC (rev 8900)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-22 12:28:31 UTC (rev 8901)
@@ -265,7 +265,8 @@
});
editStyleDialog.find('input[name="fill"]').spectrum();
editStyleDialog.find('input[name="stroke"]').spectrum();
- menu.menu('destroy').remove();
+ if(menu)
+ menu.menu('destroy').remove();
};
};
@@ -323,6 +324,10 @@
newRow.find('input').last().attr('name', $(this).val());
});
});
+
+ var $link = $('li[title="' + url + '"] > ul > li');
+
+ attributesDialog.find('.digitize-style').bind('click', editStyle($link, null));
attributesDialog.find('.digitize-save').bind('click', function() {
attributesDialog.find('table input').each(function() {
var k = $(this).attr('name');
@@ -372,6 +377,7 @@
o.$target.mb_digitize('moveMode');
$(this).addClass('active').siblings().removeClass('active');
});
+ editDialog.find('.digitize-style').bind('click', editStyle($link, menu));
var point = false;
if(feature.geometry.type.match(/point/i)) {
point = true;
More information about the Mapbender_commits
mailing list