[fusion-commits] r2088 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Mon Mar 1 21:27:27 EST 2010
Author: liuar
Date: 2010-03-01 21:27:27 -0500 (Mon, 01 Mar 2010)
New Revision: 2088
Modified:
trunk/widgets/Measure.js
Log:
Fixed Ticket #363 Measure: Some artificial points left when <ESC>
Modified: trunk/widgets/Measure.js
===================================================================
--- trunk/widgets/Measure.js 2010-02-24 02:03:27 UTC (rev 2087)
+++ trunk/widgets/Measure.js 2010-03-02 02:27:27 UTC (rev 2088)
@@ -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