1
0
Fork 0
forked from 0x2620/oxjs

add tooltips to map place info; fix a bug with autocomplete and live updates (fixes #453)

This commit is contained in:
rlx 2012-02-15 16:13:09 +00:00
commit 972808eb17
4 changed files with 19 additions and 16 deletions

View file

@ -438,7 +438,7 @@ Ox.Input = function(options, self) {
})
.addClass('OxAutocompleteMenu')
.bindEvent({
click: clickMenu
click: clickMenu,
});
return menu;
}
@ -643,9 +643,7 @@ Ox.Input = function(options, self) {
self.$input.val(self.options.value);
cursor(0, self.options.value.length);
self.options.changeOnKeypress && that.triggerEvent({
change: {
value: self.options.value
}
change: {value: self.options.value}
});
}
@ -745,9 +743,7 @@ Ox.Input = function(options, self) {
self.options.autocomplete && autocomplete(oldValue, oldCursor);
self.options.autovalidate && autovalidate(oldValue, oldCursor);
self.options.changeOnKeypress && that.triggerEvent({
change: {
value: self.options.value
}
change: {value: self.options.value}
});
}
}, 0);
@ -773,6 +769,9 @@ Ox.Input = function(options, self) {
self.options.value = data.title
self.$input.val(self.options.value);
cursor(pos[0], self.options.value.length);
self.options.changeOnKeypress && that.triggerEvent({
change: {value: self.options.value}
});
//}
}