summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-10-03 23:50:10 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-10-03 23:50:10 -0400
commit2ef2be1176d0d9617256554e6c1fc1934201993f (patch)
tree05cd60f478b3945d14c16f898357310e2ccb0cf4
parent62c2f058a936ea657f8212d01a045a9e12ca406f (diff)
downloadaskbot-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.js4
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