| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 Page = cr.ui.pageManager.Page; | 6 var Page = cr.ui.pageManager.Page; |
| 7 var PageManager = cr.ui.pageManager.PageManager; | 7 var PageManager = cr.ui.pageManager.PageManager; |
| 8 var ArrayDataModel = cr.ui.ArrayDataModel; | 8 var ArrayDataModel = cr.ui.ArrayDataModel; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 $('create-profile-supervised-signed-in-learn-more-link').onclick = | 90 $('create-profile-supervised-signed-in-learn-more-link').onclick = |
| 91 function(event) { | 91 function(event) { |
| 92 PageManager.showPageByName('supervisedUserLearnMore'); | 92 PageManager.showPageByName('supervisedUserLearnMore'); |
| 93 return false; | 93 return false; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 $('create-profile-supervised-sign-in-link').onclick = | 96 $('create-profile-supervised-sign-in-link').onclick = |
| 97 function(event) { | 97 function(event) { |
| 98 SyncSetupOverlay.startSignIn(); | 98 SyncSetupOverlay.startSignIn('access-point-supervised-user'); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 $('create-profile-supervised-sign-in-again-link').onclick = | 101 $('create-profile-supervised-sign-in-again-link').onclick = |
| 102 function(event) { | 102 function(event) { |
| 103 SyncSetupOverlay.showSetupUI(); | 103 SyncSetupOverlay.showSetupUI(); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 $('import-existing-supervised-user-link').onclick = function(event) { | 106 $('import-existing-supervised-user-link').onclick = function(event) { |
| 107 // Hide the import button to trigger a cursor update. The import button | 107 // Hide the import button to trigger a cursor update. The import button |
| 108 // is shown again when the import overlay loads. TODO(akuegel): Remove | 108 // is shown again when the import overlay loads. TODO(akuegel): Remove |
| (...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 'updateSignedInStatus', | 861 'updateSignedInStatus', |
| 862 'updateSupervisedUsersAllowed', | 862 'updateSupervisedUsersAllowed', |
| 863 ]); | 863 ]); |
| 864 | 864 |
| 865 // Export | 865 // Export |
| 866 return { | 866 return { |
| 867 ManageProfileOverlay: ManageProfileOverlay, | 867 ManageProfileOverlay: ManageProfileOverlay, |
| 868 CreateProfileOverlay: CreateProfileOverlay, | 868 CreateProfileOverlay: CreateProfileOverlay, |
| 869 }; | 869 }; |
| 870 }); | 870 }); |
| OLD | NEW |