From 2c6f302cfb0ecee5ed2bf5cfeecaa353b84be993 Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 18 Dec 2011 15:14:31 +0530 Subject: [PATCH] update uses of focusInput() --- static/js/pandora/account.js | 2 +- static/js/pandora/findElement.js | 4 ++-- static/js/pandora/home.js | 4 ++-- static/js/pandora/listDialog.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/static/js/pandora/account.js b/static/js/pandora/account.js index 3fe12e6c5..ebcab75aa 100644 --- a/static/js/pandora/account.js +++ b/static/js/pandora/account.js @@ -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'); } diff --git a/static/js/pandora/findElement.js b/static/js/pandora/findElement.js index 92c15c110..0b3fbdc4f 100644 --- a/static/js/pandora/findElement.js +++ b/static/js/pandora/findElement.js @@ -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); } } }), diff --git a/static/js/pandora/home.js b/static/js/pandora/home.js index 328d09253..cdf98cc96 100644 --- a/static/js/pandora/home.js +++ b/static/js/pandora/home.js @@ -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; }; diff --git a/static/js/pandora/listDialog.js b/static/js/pandora/listDialog.js index 14d39f7ba..ee1a2e86b 100644 --- a/static/js/pandora/listDialog.js +++ b/static/js/pandora/listDialog.js @@ -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); } }),