autocomplete, continued
This commit is contained in:
parent
a26490d1d3
commit
0139ee331f
1 changed files with 2 additions and 3 deletions
|
@ -1574,9 +1574,8 @@ requires
|
|||
});
|
||||
}
|
||||
function autocomplete(items) {
|
||||
var selected;
|
||||
var selected = 0;
|
||||
if (items.length) {
|
||||
selected = items.length == 1 ? 0 : -1;
|
||||
items = $.map(items, function(title, position) {
|
||||
if (that.val().toLowerCase() == title.toLowerCase()) {
|
||||
selected = position;
|
||||
|
@ -1625,7 +1624,7 @@ requires
|
|||
self.value = value;
|
||||
self.options.autocomplete(self.value, autocomplete);
|
||||
}
|
||||
}, 50);
|
||||
}, 25);
|
||||
}
|
||||
}
|
||||
function onClick(event, data) {
|
||||
|
|
Loading…
Reference in a new issue