[fusion-commits] r2037 - trunk/widgets

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Jan 14 15:00:51 EST 2010


Author: madair
Date: 2010-01-14 15:00:51 -0500 (Thu, 14 Jan 2010)
New Revision: 2037

Modified:
   trunk/widgets/SelectPolygon.js
Log:
closes #355: disable map context menu for widgets that draw on the map

Modified: trunk/widgets/SelectPolygon.js
===================================================================
--- trunk/widgets/SelectPolygon.js	2010-01-14 19:59:41 UTC (rev 2036)
+++ trunk/widgets/SelectPolygon.js	2010-01-14 20:00:51 UTC (rev 2037)
@@ -65,6 +65,7 @@
     activate: function() {
         this.handler.activate();
         this.getMap().setCursor(this.asCursor);
+        this.getMap().supressContextMenu(true);
     },
 
     /**
@@ -76,6 +77,7 @@
     {
         this.handler.deactivate();
         this.getMap().setCursor('auto');
+        this.getMap().supressContextMenu(false);
     },
     
     /**



More information about the fusion-commits mailing list