[Mapbender-commits] r8894 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed May 21 07:05:47 PDT 2014
Author: hwbllmnn
Date: 2014-05-21 07:05:47 -0700 (Wed, 21 May 2014)
New Revision: 8894
Modified:
trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
unbind live events on kmltree when reloading
Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-21 13:30:01 UTC (rev 8893)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-21 14:05:47 UTC (rev 8894)
@@ -219,13 +219,13 @@
$('#mapframe1').bind('kml:loaded', function(evt, item) {
var url = item.url;
- $('li[title="' + url + '"] > a').live('contextmenu', contextmenuLayer);
- $('li[title="' + url + '"] > ul > li').live('contextmenu', contextmenuObject)
- .live('click', function() {
+ $('li[title="' + url + '"] > a').die('contextmenu').live('contextmenu', contextmenuLayer);
+ $('li[title="' + url + '"] > ul > li').die('contextmenu').live('contextmenu', contextmenuObject)
+ .die('click').live('click', function() {
editObject($(this), null)();
});
- $('li[title="' + url + '"] > .digitize-menu-arrow').live('click', contextmenuLayer);
- $('li[title="' + url + '"] > ul > li > .digitize-menu-arrow').live('click', contextmenuObject);
+ $('li[title="' + url + '"] > .digitize-menu-arrow').die('click').live('click', contextmenuLayer);
+ $('li[title="' + url + '"] > ul > li > .digitize-menu-arrow').die('click').live('click', contextmenuObject);
});
};
More information about the Mapbender_commits
mailing list