Permalink
Browse files

Minor popup adjustments in TextField widget.

  • Loading branch information...
cederberg committed May 7, 2012
1 parent 752f4a0 commit 71f7768806f03174113298840ecdfb5ebc2ca0e3
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/plugin/system/files/js/RapidContext_Widget_TextField.js
@@ -175,6 +175,7 @@ RapidContext.Widget.TextField.prototype.showPopup = function (attrs, items) {
if (typeof(items[i]) == "string") {
var node = MochiKit.DOM.DIV({ "class": "widgetPopupItem" },
"\u00BB " + items[i]);
+ node.value = items[i];
popup.appendChild(node);
} else {
MochiKit.DOM.appendChildNodes(popup, items[i]);
@@ -200,7 +201,7 @@ RapidContext.Widget.TextField.prototype._handleFocus = function (evt) {
this.focused = false;
this.storedValue = this.value;
var popup = this.popup();
- if (popup != null && !popup.isHidden()) {
+ if (popup && !popup.isHidden()) {
popup.setAttrs({ delay: 250 });
}
}

0 comments on commit 71f7768

Please sign in to comment.