autocomplete, continued
This commit is contained in:
parent
fa04216352
commit
f2608df14d
1 changed files with 2 additions and 1 deletions
|
@ -1574,8 +1574,9 @@ requires
|
|||
});
|
||||
}
|
||||
function autocomplete(items) {
|
||||
var selected = -1;
|
||||
var selected;
|
||||
if (items.length) {
|
||||
selected = items.length == 1 ? 0 : -1;
|
||||
items = $.map(items, function(title, position) {
|
||||
if (that.val().toLowerCase() == title.toLowerCase()) {
|
||||
selected = position;
|
||||
|
|
Loading…
Reference in a new issue