update uses of focusInput()

This commit is contained in:
rolux 2011-12-18 15:14:11 +05:30
commit c1c4441b10
9 changed files with 21 additions and 17 deletions

View file

@ -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);
}