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

Unified Diff: chrome/browser/resources/options/manage_profile_overlay.js

Issue 75363002: Set focus to the "OK" button when editing a supervised user profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 1 month 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 | chrome/browser/ui/webui/options/manage_profile_browsertest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/manage_profile_overlay.js
===================================================================
--- chrome/browser/resources/options/manage_profile_overlay.js (revision 235678)
+++ chrome/browser/resources/options/manage_profile_overlay.js (working copy)
@@ -128,7 +128,12 @@
chrome.send('requestHasProfileShortcuts', [profileInfo.filePath]);
}
- $('manage-profile-name').focus();
+ var manageNameField = $('manage-profile-name');
+ // Supervised users cannot edit their names.
+ if (manageNameField.disabled)
+ $('manage-profile-ok').focus();
+ else
+ manageNameField.focus();
},
/**
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/manage_profile_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698