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

Unified Diff: chrome/browser/resources/chromeos/login/oobe_screen_user_image.js

Issue 8576013: [cros] Fix repetitive image selection bug in OOBE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/oobe_screen_user_image.js
diff --git a/chrome/browser/resources/chromeos/login/oobe_screen_user_image.js b/chrome/browser/resources/chromeos/login/oobe_screen_user_image.js
index aacd214599bcff53a9762160bddf93f51d557cef..109be7d1c121c9877f141f77057e5e24bf7048e1 100644
--- a/chrome/browser/resources/chromeos/login/oobe_screen_user_image.js
+++ b/chrome/browser/resources/chromeos/login/oobe_screen_user_image.js
@@ -231,8 +231,13 @@ cr.define('oobe', function() {
* @private
*/
acceptImage_: function() {
- if (!$('ok-button').disabled)
+ var okButton = $('ok-button');
+ if (!okButton.disabled) {
+ // This ensures that #ok-button won't be re-enabled again.
+ $('user-image-grid').disabled = true;
+ okButton.disabled = true;
chrome.send('onUserImageAccepted');
+ }
},
/**
« 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