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

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

Issue 2555453003: cros: HTML fixes needed to reinitializing an existing lock WebUI. (Closed)
Patch Set: Address comments Created 4 years 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
Index: ui/login/account_picker/screen_account_picker.js
diff --git a/ui/login/account_picker/screen_account_picker.js b/ui/login/account_picker/screen_account_picker.js
index 7cac00bc3a4131a61cced2d65def37864f3e96ef..5044a3d2e186d4ee30306cdb21ec6c09d80cd57f 100644
--- a/ui/login/account_picker/screen_account_picker.js
+++ b/ui/login/account_picker/screen_account_picker.js
@@ -266,6 +266,14 @@ login.createScreen('AccountPickerScreen', 'account-picker', function() {
* @param {array} users Array of user instances.
*/
initializePinKeyboardStateForUsers_: function(users) {
+ // It is possible that the PIN keyboard HTML has already been loaded. If
+ // that is the case, we want to show the user pods with the PIN keyboard
+ // immediately without running the PIN show/hide effect.
+ document.body.classList.add('disable-pin-animation');
+ setTimeout(function() {
+ document.body.classList.remove('disable-pin-animation');
+ });
+
for (var i = 0; i < users.length; ++i) {
var user = users[i];
if (user.showPin) {
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc ('k') | ui/login/account_picker/user_pod_row.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698