fix for autocomplete bug
This commit is contained in:
parent
8fb9319192
commit
ba3410eaf3
2 changed files with 2 additions and 1 deletions
|
@ -2000,7 +2000,7 @@ requires
|
||||||
|
|
||||||
function onClick(event, data) {
|
function onClick(event, data) {
|
||||||
Ox.print("onClick", data);
|
Ox.print("onClick", data);
|
||||||
that.$input.focus().val(Ox.stripTags(data.title));
|
that.$input.val(Ox.stripTags(data.title));
|
||||||
self.autocompleteMenu.hideMenu();
|
self.autocompleteMenu.hideMenu();
|
||||||
submit();
|
submit();
|
||||||
}
|
}
|
||||||
|
|
|
@ -283,6 +283,7 @@ $(function() {
|
||||||
],
|
],
|
||||||
range: [0, 10]
|
range: [0, 10]
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
|
Ox.print("calling callback", result.data.items)
|
||||||
callback($.map(result.data.items, function(v) {
|
callback($.map(result.data.items, function(v) {
|
||||||
return v.title;
|
return v.title;
|
||||||
}))
|
}))
|
||||||
|
|
Loading…
Reference in a new issue