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:
parent
96db09337c
commit
972808eb17
4 changed files with 19 additions and 16 deletions
|
|
@ -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}
|
||||
});
|
||||
//}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue