diff options
author | David Rothstein <drothstein@gmail.com> | 2012-07-29 21:57:46 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2012-07-29 21:57:46 -0400 |
commit | 41f11d40b2eec1872ff771be2dd20ab28db81698 (patch) | |
tree | 827f1ec087e38de53589ffe31d41fdc6f61d4cd9 | |
parent | 349ea196f4f4f692a817e90e39a34f094a2ac7f5 (diff) | |
download | brdo-41f11d40b2eec1872ff771be2dd20ab28db81698.tar.gz brdo-41f11d40b2eec1872ff771be2dd20ab28db81698.tar.bz2 |
Issue #1631164 by Aron Novak, Mithrandir: Fixed Autocomplete fires on readonly fields.
-rw-r--r-- | misc/autocomplete.js | 6 |
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; } }; |