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

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

Issue 6961014: Modify settings page text when syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adjusted from Syncing to Last synced to. Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/webui/options/personal_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698