update uses of focusInput()
This commit is contained in:
parent
4701245038
commit
c1c4441b10
9 changed files with 21 additions and 17 deletions
|
|
@ -66,7 +66,7 @@ Ox.ArrayInput = function(options, self) {
|
|||
}
|
||||
})
|
||||
.appendTo(self.$element[index]));
|
||||
focus && self.$input[index].focusInput();
|
||||
focus && self.$input[index].focusInput(true);
|
||||
self.$removeButton.splice(index, 0, Ox.Button({
|
||||
title: self.$input.length == 1 ? 'close' : 'remove',
|
||||
type: 'image'
|
||||
|
|
@ -83,7 +83,7 @@ Ox.ArrayInput = function(options, self) {
|
|||
});
|
||||
}
|
||||
if (self.$input.length == 1) {
|
||||
self.$input[0].focusInput();
|
||||
self.$input[0].focusInput(true);
|
||||
} else {
|
||||
removeInput(index);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue