[Mapbender-commits] r8871 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu May 15 08:02:51 PDT 2014
Author: hwbllmnn
Date: 2014-05-15 08:02:51 -0700 (Thu, 15 May 2014)
New Revision: 8871
Modified:
trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
make digitize buttons active after click
Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-15 14:39:40 UTC (rev 8870)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-15 15:02:51 UTC (rev 8871)
@@ -347,16 +347,19 @@
});
digitizeDialog.find('.digitize-point').bind('click', function() {
status = 'new-point';
+ $(this).addClass('active').siblings().removeClass('active');
digitizingFor = $link.parent().attr('title');
that.activate();
});
digitizeDialog.find('.digitize-line').bind('click', function() {
status = 'new-line';
+ $(this).addClass('active').siblings().removeClass('active');
digitizingFor = $link.parent().attr('title');
that.activate();
});
digitizeDialog.find('.digitize-polygon').bind('click', function() {
status = 'new-polygon';
+ $(this).addClass('active').siblings().removeClass('active');
digitizingFor = $link.parent().attr('title');
that.activate();
});
More information about the Mapbender_commits
mailing list