fix for autocomplete bug

This commit is contained in:
Rolux 2010-07-02 17:20:46 +02:00
parent 8fb9319192
commit ba3410eaf3
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;
}))