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

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

Issue 1060333002: Supervised user import dialog: disable "ok" button when no user is selected (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: chrome/browser/resources/options/supervised_user_import.js
diff --git a/chrome/browser/resources/options/supervised_user_import.js b/chrome/browser/resources/options/supervised_user_import.js
index e6b436aaccdcc2f079374e26d4aaa9965c5723dc..2eb2156b73589df836843ccc73b8fbe446a937d9 100644
--- a/chrome/browser/resources/options/supervised_user_import.js
+++ b/chrome/browser/resources/options/supervised_user_import.js
@@ -45,11 +45,8 @@ cr.define('options', function() {
supervisedUserList.addEventListener('change', function(event) {
var supervisedUser = supervisedUserList.selectedItem;
- if (!supervisedUser)
- return;
-
$('supervised-user-import-ok').disabled =
- supervisedUserList.selectedItem.onCurrentDevice;
+ !supervisedUser || supervisedUser.onCurrentDevice;
});
var self = this;
« 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