Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(635)

Unified Diff: ui/login/account_picker/user_pod_row.js

Issue 962523004: Proper focus input field instead of whole pod (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2311
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/login/account_picker/user_pod_row.js
diff --git a/ui/login/account_picker/user_pod_row.js b/ui/login/account_picker/user_pod_row.js
index 8e1da8d1b7872e482a66f2796bcf8add29a4a572..ba3c0365ccefde5c65c18ad7b0f91c201138ec83 100644
--- a/ui/login/account_picker/user_pod_row.js
+++ b/ui/login/account_picker/user_pod_row.js
@@ -2770,9 +2770,13 @@ cr.define('login', function() {
if (podToFocus) {
podToFocus.classList.remove('faded');
podToFocus.classList.add('focused');
- if (podToFocus.multiProfilesPolicyApplied)
+ if (!podToFocus.multiProfilesPolicyApplied) {
+ podToFocus.classList.toggle('signing-in', false);
+ podToFocus.focusInput();
+ } else {
podToFocus.userTypeBubbleElement.classList.add('bubble-shown');
- podToFocus.focus();
+ podToFocus.focus();
+ }
// focusPod() automatically loads wallpaper
if (!podToFocus.user.isApp)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698