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

Side by Side Diff: chrome/browser/resources/options/managed_user_import.js

Issue 100073004: Fix issues with supervised user recreation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing imageset statements. Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('options', function() { 5 cr.define('options', function() {
6 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 var ArrayDataModel = cr.ui.ArrayDataModel; 7 var ArrayDataModel = cr.ui.ArrayDataModel;
8 8
9 /** 9 /**
10 * ManagedUserImportOverlay class. 10 * ManagedUserImportOverlay class.
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 if (!managedUsers) { 174 if (!managedUsers) {
175 $('managed-user-list').dataModel = null; 175 $('managed-user-list').dataModel = null;
176 return; 176 return;
177 } 177 }
178 178
179 managedUsers.sort(function(a, b) { 179 managedUsers.sort(function(a, b) {
180 return a.name.localeCompare(b.name); 180 return a.name.localeCompare(b.name);
181 }); 181 });
182 182
183 $('managed-user-list').dataModel = new ArrayDataModel(managedUsers); 183 $('managed-user-list').dataModel = new ArrayDataModel(managedUsers);
184 if (managedUsers.length == 0) 184 if (managedUsers.length == 0) {
185 this.onError_(loadTimeData.getString('noExistingManagedUsers')); 185 this.onError_(loadTimeData.getString('noExistingManagedUsers'));
186 $('managed-user-import-ok').disabled = true;
187 }
186 }, 188 },
187 189
188 /** 190 /**
189 * @private 191 * @private
190 */ 192 */
191 hideErrorBubble_: function() { 193 hideErrorBubble_: function() {
192 $('managed-user-import-error-bubble').hidden = true; 194 $('managed-user-import-error-bubble').hidden = true;
193 }, 195 },
194 196
195 /** 197 /**
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 var instance = ManagedUserImportOverlay.getInstance(); 229 var instance = ManagedUserImportOverlay.getInstance();
228 return instance[name + '_'].apply(instance, arguments); 230 return instance[name + '_'].apply(instance, arguments);
229 }; 231 };
230 }); 232 });
231 233
232 // Export 234 // Export
233 return { 235 return {
234 ManagedUserImportOverlay: ManagedUserImportOverlay, 236 ManagedUserImportOverlay: ManagedUserImportOverlay,
235 }; 237 };
236 }); 238 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/managed_user_import.css ('k') | chrome/browser/resources/options/managed_user_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698