[fusion-commits] r1569 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Mon Sep 29 17:00:43 EDT 2008
Author: pagameba
Date: 2008-09-29 17:00:43 -0400 (Mon, 29 Sep 2008)
New Revision: 1569
Modified:
trunk/widgets/EditableScale.js
Log:
EditableScale has no UI object, so just append it in initializeWidget. Use OpenLayers.Event.KEY_RETURN.
Modified: trunk/widgets/EditableScale.js
===================================================================
--- trunk/widgets/EditableScale.js 2008-09-29 20:50:39 UTC (rev 1568)
+++ trunk/widgets/EditableScale.js 2008-09-29 21:00:43 UTC (rev 1569)
@@ -49,13 +49,8 @@
Fusion.addWidgetStyleSheet(widgetTag.location + '/EditableScale/EditableScale.css');
-
- },
-
- setUiObject: function(uiObj) {
- Fusion.Widget.prototype.setUiObject.apply(this, [uiObj]);
this.domObj.appendChild(domPrefix);
- this.uiObj.appendChild(this.domScale);
+ this.domObj.appendChild(this.domScale);
},
scaleChanged: function() {
@@ -68,7 +63,7 @@
},
keyPressHandler: function(e) {
- if (e.keyCode == Event.KEY_RETURN) {
+ if (e.keyCode == OpenLayers.Event.KEY_RETURN) {
this.zoomToScale();
}
},
More information about the fusion-commits
mailing list