Select first non-disabled item

master
Vitaliy Filippov 2013-11-13 12:46:23 +00:00
parent 6fc3befa52
commit 1022acc34f
2 changed files with 3 additions and 1 deletions

View File

@ -165,6 +165,8 @@ SimpleAutocomplete.prototype.replaceItems = function(items, append)
this.disable();
return;
}
while (this.selectedIndex < items.length && items[this.selectedIndex][2])
this.selectedIndex++;
this.hintLayer.innerHTML = this.prompt ? '<div class="hintPrompt">'+this.prompt+'</div>' : '';
this.enable();
}

2
hinter.min.js vendored

File diff suppressed because one or more lines are too long