update uses of focusInput()

This commit is contained in:
rolux 2011-12-18 15:14:31 +05:30
parent cea86aee43
commit 2c6f302cfb
4 changed files with 6 additions and 6 deletions

View file

@ -290,7 +290,7 @@ pandora.ui.accountForm = function(action, value) {
? pandora.autovalidateUsername : pandora.autovalidateEmail,
validate: pandora.validateUser(selected, true),
value: ''
}).focusInput();
}).focusInput(true);
that.$element.find('.OxFormMessage:visible').html('').hide();
pandora.$ui.accountDialog.disableButton('submitReset');
}

View file

@ -19,7 +19,7 @@ pandora.ui.findElement = function() {
var key = data.selected[0].id;
pandora.$ui.findInput.options({
autocomplete: autocompleteFunction()
}).focusInput();
}).focusInput(true);
}
}),
] : [], [
@ -55,7 +55,7 @@ pandora.ui.findElement = function() {
pandora.$ui.findInput.options({
autocomplete: autocompleteFunction(),
placeholder: ''
}).focusInput();
}).focusInput(true);
}
}
}),

View file

@ -242,7 +242,7 @@ pandora.ui.home = function() {
that.fadeInScreen = function() {
that.appendTo(Ox.UI.$body).animate({opacity: 1}, 500, function() {
that.find(':not(#logo)').animate({opacity: 1}, 250, function() {
$findInput.focusInput();
$findInput.focusInput(true);
});
});
$logo.animate({width: '320px'}, 500);
@ -269,7 +269,7 @@ pandora.ui.home = function() {
$logo.css({width: '320px'});
that.find(':not(#logo)').css({opacity: 1});
that.css({opacity: 1}).appendTo(Ox.UI.$body);
$findInput.focusInput();
$findInput.focusInput(true);
return that;
};

View file

@ -59,7 +59,7 @@ pandora.ui.listDialog = function(section) {
});
// fixme: this is a bit weird
setTimeout(function() {
pandora.$ui.findIconItemInput.focusInput();
pandora.$ui.findIconItemInput.focusInput(true);
}, 250);
}
}),