autocomplete, continued
This commit is contained in:
parent
8f18c726b6
commit
07ec8f30f7
2 changed files with 7 additions and 5 deletions
|
|
@ -1537,7 +1537,7 @@ requires
|
|||
.defaults({
|
||||
autocomplete: null,
|
||||
id: "",
|
||||
placeholder: "",
|
||||
placeholder: "", // can be [], will result in select
|
||||
size: "medium",
|
||||
type: "text"
|
||||
})
|
||||
|
|
@ -1577,7 +1577,7 @@ requires
|
|||
var selected = 0;
|
||||
if (items.length) {
|
||||
items = $.map(items, function(title, position) {
|
||||
if (that.val().toLowerCase() == title.toLowerCase()) {
|
||||
if (that.val().toLowerCase() == Ox.stripTags(title.toLowerCase())) {
|
||||
selected = position;
|
||||
}
|
||||
return {
|
||||
|
|
@ -1622,7 +1622,7 @@ requires
|
|||
var value = that.val();
|
||||
if (self.options.autocomplete && value != self.value) {
|
||||
self.value = value;
|
||||
self.options.autocomplete(self.value, autocomplete);
|
||||
self.options.autocomplete(value, autocomplete);
|
||||
}
|
||||
}, 25);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue