From 85d4ea4f8b99e70ea6f0638fc7a63f7d90ce0b59 Mon Sep 17 00:00:00 2001 From: Rolux Date: Fri, 2 Jul 2010 17:20:46 +0200 Subject: [PATCH] fix for autocomplete bug --- build/js/ox.ui.js | 2 +- demos/test/list.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index ef2e452..1a537be 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -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(); } diff --git a/demos/test/list.js b/demos/test/list.js index aac844c..ab2bd2c 100644 --- a/demos/test/list.js +++ b/demos/test/list.js @@ -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; }))