| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 6 |
| 7 var OptionsPage = options.OptionsPage; | 7 var OptionsPage = options.OptionsPage; |
| 8 | 8 |
| 9 // State variables. | 9 // State variables. |
| 10 var syncEnabled = false; | 10 var syncEnabled = false; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 }, | 121 }, |
| 122 | 122 |
| 123 setAccountPicture_: function(image) { | 123 setAccountPicture_: function(image) { |
| 124 $('account-picture').src = image; | 124 $('account-picture').src = image; |
| 125 }, | 125 }, |
| 126 | 126 |
| 127 setSyncStatus_: function(status) { | 127 setSyncStatus_: function(status) { |
| 128 var statusSet = status != ''; | 128 var statusSet = status != ''; |
| 129 $('sync-overview').hidden = statusSet; | 129 $('sync-overview').hidden = statusSet; |
| 130 $('sync-status').hidden = !statusSet; | 130 $('sync-status').hidden = !statusSet; |
| 131 $('sync-status-text').textContent = status; | 131 $('sync-status-text').innerHTML = status; |
| 132 }, | 132 }, |
| 133 | 133 |
| 134 setSyncStatusErrorVisible_: function(visible) { | 134 setSyncStatusErrorVisible_: function(visible) { |
| 135 visible ? $('sync-status').classList.add('sync-error') : | 135 visible ? $('sync-status').classList.add('sync-error') : |
| 136 $('sync-status').classList.remove('sync-error'); | 136 $('sync-status').classList.remove('sync-error'); |
| 137 }, | 137 }, |
| 138 | 138 |
| 139 setSyncActionLinkEnabled_: function(enabled) { | 139 setSyncActionLinkEnabled_: function(enabled) { |
| 140 $('sync-action-link').disabled = !enabled; | 140 $('sync-action-link').disabled = !enabled; |
| 141 }, | 141 }, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 PersonalOptions.getInstance()[name + '_'](value); | 237 PersonalOptions.getInstance()[name + '_'](value); |
| 238 }; | 238 }; |
| 239 }); | 239 }); |
| 240 | 240 |
| 241 // Export | 241 // Export |
| 242 return { | 242 return { |
| 243 PersonalOptions: PersonalOptions | 243 PersonalOptions: PersonalOptions |
| 244 }; | 244 }; |
| 245 | 245 |
| 246 }); | 246 }); |
| OLD | NEW |