[Mapbender-commits] r8919 - in trunk/mapbender: http/plugins lib
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed May 28 02:49:59 PDT 2014
Author: hwbllmnn
Date: 2014-05-28 02:49:59 -0700 (Wed, 28 May 2014)
New Revision: 8919
Modified:
trunk/mapbender/http/plugins/mb_digitize_widget.php
trunk/mapbender/lib/mb.ui.displayKmlFeatures.js
Log:
fixed rendering when updating feature visibility, cleaned up tree events
Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-28 09:36:53 UTC (rev 8918)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php 2014-05-28 09:49:59 UTC (rev 8919)
@@ -252,7 +252,10 @@
var url = item.url;
$('li[title="' + url + '"] > a').die('contextmenu').live('contextmenu', contextmenuLayer);
$('li[title="' + url + '"] > ul > li').die('contextmenu').live('contextmenu', contextmenuObject)
- .die('click').live('click', function() {
+ .die('click').live('click', function(e) {
+ if($(e.srcElement).is('button,input')) {
+ return;
+ }
editObject($(this), null)();
});
$('li[title="' + url + '"] > .digitize-menu-arrow').die('click').live('click', contextmenuLayer);
Modified: trunk/mapbender/lib/mb.ui.displayKmlFeatures.js
===================================================================
--- trunk/mapbender/lib/mb.ui.displayKmlFeatures.js 2014-05-28 09:36:53 UTC (rev 8918)
+++ trunk/mapbender/lib/mb.ui.displayKmlFeatures.js 2014-05-28 09:49:59 UTC (rev 8919)
@@ -149,11 +149,13 @@
showFeature: function(url, idx) {
this._kmls[url].data.features[idx].display = true;
+ this.cache[url] = null;
this.render();
},
hideFeature: function(url, idx) {
this._kmls[url].data.features[idx].display = false;
+ this.cache[url] = null;
this.render();
},
More information about the Mapbender_commits
mailing list