From f5bb86fa3230bc1991953bf15208d6090c295e2b Mon Sep 17 00:00:00 2001 From: Rolux Date: Thu, 18 Feb 2010 21:16:25 +0530 Subject: [PATCH] autocomplete, continued --- build/js/ox.ui.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index 0fd3972..88a429c 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -1629,16 +1629,9 @@ requires } function onClick(event, data) { Ox.print("onClick", data) - that.val(data.title); + that.focus().val(data.title); self.menu.hideMenu(); } - function onDeselect(event, data) { - //that.val(self.value); - } - function onSelect(event, data) { - //self.value = that.val(); - //that.val(data.title); - } function selection() { var start, end; if (arguments.length == 0) { @@ -2631,12 +2624,6 @@ requires menuMaxHeight = Math.floor($window.height() - top - 16); } } - /* - that.css({ - left: left + "px", - top: top + "px" - }).show(); - */ that.css({ left: left + "px", top: top + "px"