From 8043601c4147bab36b6601410cee2e0b6e639290 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Tue, 5 Mar 2013 15:42:52 +0000 Subject: [PATCH] Prompts for SimpleAutocomplete --- hinter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hinter.js b/hinter.js index 0f6ad67..edcd31b 100644 --- a/hinter.js +++ b/hinter.js @@ -161,7 +161,7 @@ SimpleAutocomplete.prototype.init = function() // obj = [ [ name, value, disabled ], [ name, value ], ... ] SimpleAutocomplete.prototype.replaceItems = function(items, keepPosition) { - this.hintLayer.innerHTML = this.promptHTML; + this.hintLayer.innerHTML = ''; if (!keepPosition) { this.hintLayer.scrollTop = 0; @@ -180,6 +180,7 @@ SimpleAutocomplete.prototype.replaceItems = function(items, keepPosition) this.disable(); return; } + this.hintLayer.innerHTML = this.promptHTML; this.enable(); var h = {}; if (this.multipleDelimiter)