fix for autocomplete bug

This commit is contained in:
Rolux 2010-07-02 17:20:46 +02:00
parent 20a87b1392
commit 85d4ea4f8b
2 changed files with 2 additions and 1 deletions

View File

@ -2000,7 +2000,7 @@ requires
function onClick(event, data) {
Ox.print("onClick", data);
that.$input.focus().val(Ox.stripTags(data.title));
that.$input.val(Ox.stripTags(data.title));
self.autocompleteMenu.hideMenu();
submit();
}

View File

@ -283,6 +283,7 @@ $(function() {
],
range: [0, 10]
}, function(result) {
Ox.print("calling callback", result.data.items)
callback($.map(result.data.items, function(v) {
return v.title;
}))