[fusion-commits] r2038 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu Jan 14 16:01:38 EST 2010
Author: madair
Date: 2010-01-14 16:01:35 -0500 (Thu, 14 Jan 2010)
New Revision: 2038
Modified:
trunk/widgets/SelectRadius.js
Log:
closes #355: disable map context menu for widgets that draw on the map
Modified: trunk/widgets/SelectRadius.js
===================================================================
--- trunk/widgets/SelectRadius.js 2010-01-14 20:00:51 UTC (rev 2037)
+++ trunk/widgets/SelectRadius.js 2010-01-14 21:01:35 UTC (rev 2038)
@@ -113,6 +113,7 @@
this.getMap().setCursor(this.asCursor);
/*map units for tool tip*/
this.units = this.getMap().getAllMaps()[0].units;
+ this.getMap().supressContextMenu(true);
this.triggerEvent(Fusion.Event.RADIUS_WIDGET_ACTIVATED, true);
},
@@ -124,6 +125,7 @@
deactivate: function() {
this.handler.deactivate();
this.getMap().setCursor('auto');
+ this.getMap().supressContextMenu(false);
/*icon button*/
this.triggerEvent(Fusion.Event.RADIUS_WIDGET_ACTIVATED, false);
},
More information about the fusion-commits
mailing list