diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-10-03 23:50:10 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-10-03 23:50:10 -0400 |
commit | 2ef2be1176d0d9617256554e6c1fc1934201993f (patch) | |
tree | 05cd60f478b3945d14c16f898357310e2ccb0cf4 | |
parent | 62c2f058a936ea657f8212d01a045a9e12ca406f (diff) | |
download | askbot-2ef2be1176d0d9617256554e6c1fc1934201993f.tar.gz askbot-2ef2be1176d0d9617256554e6c1fc1934201993f.tar.bz2 askbot-2ef2be1176d0d9617256554e6c1fc1934201993f.zip |
fixed a bug in an autocompleter where initial value of the field could be erased
-rw-r--r-- | askbot/media/js/utils.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/askbot/media/js/utils.js b/askbot/media/js/utils.js index 1dddc07d..2534fb21 100644 --- a/askbot/media/js/utils.js +++ b/askbot/media/js/utils.js @@ -2108,7 +2108,9 @@ AutoCompleter.prototype.decorate = function(element){ /** * Set prompt text */ - this.setPrompt(); + if (this.options['promptText']) { + this.setPrompt(); + } /** * Create DOM element to hold results |