[Mapbender-commits] r8849 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon May 12 07:02:06 PDT 2014
Author: hwbllmnn
Date: 2014-05-12 07:02:06 -0700 (Mon, 12 May 2014)
New Revision: 8849
Modified:
trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
added hide/show of grouped buttons for add dialog
Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-12 13:52:47 UTC (rev 8848)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-12 14:02:06 UTC (rev 8849)
@@ -69,12 +69,12 @@
var digitizeHtml = '<div title="Sketch">' +
'<div class="digitize-image digitize-pencil"></div>' +
- '<fieldset class="fieldset-auto-width">' +
+ '<fieldset class="fieldset-auto-width digitize-hidden">' +
'<div class="digitize-image digitize-cursor"></div>' +
'<div class="digitize-image digitize-remove"></div>' +
'</fieldset><br></br>' +
'<div class="digitize-image digitize-add"></div>' +
- '<fieldset class="fieldset-auto-width">' +
+ '<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>' +
@@ -258,8 +258,11 @@
$link.parent().remove();
menu.menu('destroy').remove();
});
- menu.children('li:has(.digitize-add)').bind('click', function() {
+ menu.children('li:has(.digitize-add,.digitize-pencil)').bind('click', function() {
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';
digitizingFor = $link.parent().attr('title');
More information about the Mapbender_commits
mailing list