[fusion-commits] r2089 - sandbox/adsk/2.2gp/widgets

svn_fusion at osgeo.org svn_fusion at osgeo.org
Mon Mar 1 21:30:38 EST 2010


Author: liuar
Date: 2010-03-01 21:30:38 -0500 (Mon, 01 Mar 2010)
New Revision: 2089

Modified:
   sandbox/adsk/2.2gp/widgets/Measure.js
Log:
Port the fix of Ticket #363 to branch

Modified: sandbox/adsk/2.2gp/widgets/Measure.js
===================================================================
--- sandbox/adsk/2.2gp/widgets/Measure.js	2010-03-02 02:27:27 UTC (rev 2088)
+++ sandbox/adsk/2.2gp/widgets/Measure.js	2010-03-02 02:30:38 UTC (rev 2089)
@@ -345,7 +345,8 @@
     onKeyPress: function(e) {
         var charCode = (e.charCode ) ? e.charCode : ((e.keyCode) ? e.keyCode : e.which);
         if (charCode == OpenLayers.Event.KEY_ESC) {
-            this.control.cancel();
+            this.deactivate();
+            this.activate();
         }
     },
     
@@ -571,6 +572,10 @@
           }
           var tDist = outputDoc.getElementById('totalDistance');
           tDist.innerHTML = '';
+          var tArea = outputDoc.getElementById('totalArea');
+          if(tArea){
+              tArea.innerHTML = '';
+          }
         }
     },
     



More information about the fusion-commits mailing list