summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2012-07-29 21:57:46 -0400
committerDavid Rothstein <drothstein@gmail.com>2012-07-29 21:57:46 -0400
commit41f11d40b2eec1872ff771be2dd20ab28db81698 (patch)
tree827f1ec087e38de53589ffe31d41fdc6f61d4cd9 /misc
parent349ea196f4f4f692a817e90e39a34f094a2ac7f5 (diff)
downloadbrdo-41f11d40b2eec1872ff771be2dd20ab28db81698.tar.gz
brdo-41f11d40b2eec1872ff771be2dd20ab28db81698.tar.bz2
Issue #1631164 by Aron Novak, Mithrandir: Fixed Autocomplete fires on readonly fields.
Diffstat (limited to 'misc')
-rw-r--r--misc/autocomplete.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/misc/autocomplete.js b/misc/autocomplete.js
index 267d4b79b..8f7ac6011 100644
--- a/misc/autocomplete.js
+++ b/misc/autocomplete.js
@@ -99,10 +99,12 @@ Drupal.jsAC.prototype.onkeyup = function (input, e) {
return true;
default: // All other keys.
- if (input.value.length > 0)
+ if (input.value.length > 0 && !input.readOnly) {
this.populatePopup();
- else
+ }
+ else {
this.hidePopup(e.keyCode);
+ }
return true;
}
};