autocomplete, continued

This commit is contained in:
Rolux 2010-02-18 21:16:25 +05:30
parent 14bfcdf917
commit f5bb86fa32

View File

@ -1629,16 +1629,9 @@ requires
} }
function onClick(event, data) { function onClick(event, data) {
Ox.print("onClick", data) Ox.print("onClick", data)
that.val(data.title); that.focus().val(data.title);
self.menu.hideMenu(); 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() { function selection() {
var start, end; var start, end;
if (arguments.length == 0) { if (arguments.length == 0) {
@ -2631,12 +2624,6 @@ requires
menuMaxHeight = Math.floor($window.height() - top - 16); menuMaxHeight = Math.floor($window.height() - top - 16);
} }
} }
/*
that.css({
left: left + "px",
top: top + "px"
}).show();
*/
that.css({ that.css({
left: left + "px", left: left + "px",
top: top + "px" top: top + "px"