Prompts for SimpleAutocomplete
parent
79f6f68ebc
commit
8043601c41
|
@ -161,7 +161,7 @@ SimpleAutocomplete.prototype.init = function()
|
||||||
// obj = [ [ name, value, disabled ], [ name, value ], ... ]
|
// obj = [ [ name, value, disabled ], [ name, value ], ... ]
|
||||||
SimpleAutocomplete.prototype.replaceItems = function(items, keepPosition)
|
SimpleAutocomplete.prototype.replaceItems = function(items, keepPosition)
|
||||||
{
|
{
|
||||||
this.hintLayer.innerHTML = this.promptHTML;
|
this.hintLayer.innerHTML = '';
|
||||||
if (!keepPosition)
|
if (!keepPosition)
|
||||||
{
|
{
|
||||||
this.hintLayer.scrollTop = 0;
|
this.hintLayer.scrollTop = 0;
|
||||||
|
@ -180,6 +180,7 @@ SimpleAutocomplete.prototype.replaceItems = function(items, keepPosition)
|
||||||
this.disable();
|
this.disable();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.hintLayer.innerHTML = this.promptHTML;
|
||||||
this.enable();
|
this.enable();
|
||||||
var h = {};
|
var h = {};
|
||||||
if (this.multipleDelimiter)
|
if (this.multipleDelimiter)
|
||||||
|
|
Loading…
Reference in New Issue