[Mapbender-commits] r8870 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu May 15 07:39:40 PDT 2014
Author: hwbllmnn
Date: 2014-05-15 07:39:40 -0700 (Thu, 15 May 2014)
New Revision: 8870
Modified:
trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
make state visible for geometry edit buttons
Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-15 12:29:06 UTC (rev 8869)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-15 14:39:40 UTC (rev 8870)
@@ -300,15 +300,19 @@
editDialog.find('.digitize-move').bind('click', function() {
o.$target.mb_digitize('moveMode');
+ $(this).addClass('active').siblings().removeClass('active');
});
editDialog.find('.digitize-add-vertex').bind('click', function() {
o.$target.mb_digitize('addVertexMode');
+ $(this).addClass('active').siblings().removeClass('active');
});
editDialog.find('.digitize-move-vertex').bind('click', function() {
o.$target.mb_digitize('moveVertexMode');
+ $(this).addClass('active').siblings().removeClass('active');
});
editDialog.find('.digitize-delete-vertex').bind('click', function() {
o.$target.mb_digitize('deleteVertexMode');
+ $(this).addClass('active').siblings().removeClass('active');
});
var preview = editDialog.find('.digitize-preview').html('').get(0);
kml.renderPreview(feature, preview);
More information about the Mapbender_commits
mailing list