forked from 0x2620/oxjs
update uses of focusInput()
This commit is contained in:
parent
4701245038
commit
c1c4441b10
9 changed files with 21 additions and 17 deletions
|
|
@ -768,7 +768,7 @@ Ox.Input = function(options, self) {
|
|||
if (self.options.value === '') {
|
||||
if (self.options.type == 'password') {
|
||||
self.$placeholder.hide();
|
||||
self.$input.show().focusInput();
|
||||
self.$input.show().focusInput(true);
|
||||
} else {
|
||||
self.$input
|
||||
.removeClass('OxPlaceholder')
|
||||
|
|
@ -1138,7 +1138,7 @@ Ox.Input_ = function(options, self) {
|
|||
float: 'left'
|
||||
})
|
||||
.click(function() {
|
||||
that.$input[0].focusInput();
|
||||
that.$input[0].focusInput(true);
|
||||
})
|
||||
.appendTo(that);
|
||||
} else if (key.label.length > 1) {
|
||||
|
|
@ -1192,7 +1192,7 @@ Ox.Input_ = function(options, self) {
|
|||
float: 'right'
|
||||
})
|
||||
.click(function() {
|
||||
that.$input[0].focusInput();
|
||||
that.$input[0].focusInput(true);
|
||||
})
|
||||
.appendTo(that);
|
||||
} else if (self.options.unit.length > 1) {
|
||||
|
|
@ -1232,7 +1232,7 @@ Ox.Input_ = function(options, self) {
|
|||
marginLeft: (v.width - (i == 0 ? 16 : 32)) + 'px'
|
||||
})
|
||||
.click(function() {
|
||||
that.$input[0].focusInput();
|
||||
that.$input[0].focusInput(true);
|
||||
})
|
||||
.appendTo(that);
|
||||
}
|
||||
|
|
@ -1307,7 +1307,7 @@ Ox.Input_ = function(options, self) {
|
|||
}
|
||||
if (self.options.label) {
|
||||
//that.$label.html(self.option.title);
|
||||
that.$input[0].focusInput();
|
||||
that.$input[0].focusInput(true);
|
||||
//autocompleteCall();
|
||||
} else {
|
||||
that.$input[0].options({
|
||||
|
|
@ -1326,14 +1326,14 @@ Ox.Input_ = function(options, self) {
|
|||
}
|
||||
|
||||
function changeUnit() {
|
||||
that.$input[0].focusInput();
|
||||
that.$input[0].focusInput(true);
|
||||
}
|
||||
|
||||
function clear() {
|
||||
that.$input.forEach(function(v, i) {
|
||||
v.val('');
|
||||
});
|
||||
that.$input[0].focusInput();
|
||||
that.$input[0].focusInput(true);
|
||||
}
|
||||
|
||||
function height(value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue