Prompts for SimpleAutocomplete

master
Vitaliy Filippov 2013-03-05 15:42:52 +00:00
parent 79f6f68ebc
commit 8043601c41
1 changed files with 2 additions and 1 deletions

View File

@ -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)