[Mapbender-commits] r8832 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu May 8 07:36:02 PDT 2014
Author: hwbllmnn
Date: 2014-05-08 07:36:02 -0700 (Thu, 08 May 2014)
New Revision: 8832
Modified:
trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
implemented remove for kml files in context menu
Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-08 14:31:32 UTC (rev 8831)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-08 14:36:02 UTC (rev 8832)
@@ -182,6 +182,11 @@
$link.click();
menu.menu('destroy').remove();
});
+ menu.children('li:has(.digitize-remove)').bind('click', function() {
+ $('#mapframe1').data('kml').remove(item.url);
+ $link.parent().remove();
+ menu.menu('destroy').remove();
+ });
return false;
});
$('li[title="' + url + '"] > ul > li').live('contextmenu', function() {
More information about the Mapbender_commits
mailing list