forked from 0x2620/oxjs
Ox.UI -> Ox
This commit is contained in:
parent
eaaa8602e7
commit
775aa607c8
13 changed files with 31 additions and 31 deletions
|
|
@ -650,7 +650,7 @@ Ox.Input = function(options, self) {
|
|||
self.options.autovalidate && autovalidate(true);
|
||||
self.options.placeholder && setPlaceholder();
|
||||
self.options.validate && validate();
|
||||
self.bindKeyboard && Ox.UI.$document.off('keydown', keydown);
|
||||
self.bindKeyboard && Ox.$document.off('keydown', keydown);
|
||||
if (!self.cancelled && !self.submitted) {
|
||||
that.triggerEvent('blur', {value: self.options.value});
|
||||
self.options.value !== self.originalValue && that.triggerEvent('change', {
|
||||
|
|
@ -782,8 +782,8 @@ Ox.Input = function(options, self) {
|
|||
self.options.placeholder && setPlaceholder();
|
||||
if (self.bindKeyboard) {
|
||||
// fixme: different in webkit and firefox (?), see keyboard handler, need generic function
|
||||
Ox.UI.$document.keydown(keydown);
|
||||
//Ox.UI.$document.keypress(keypress);
|
||||
Ox.$document.keydown(keydown);
|
||||
//Ox.$document.keypress(keypress);
|
||||
// temporarily disabled autocomplete on focus
|
||||
//self.options.autocompleteSelect && setTimeout(autocomplete, 0); // fixme: why is the timeout needed?
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue