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

Side by Side Diff: chrome/browser/resources/sync_setup_overlay.js

Issue 10187008: Sync UI: Ensure the close button is shown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/sync_setup_overlay.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 /** @const */ var OptionsPage = options.OptionsPage; 6 /** @const */ var OptionsPage = options.OptionsPage;
7 7
8 // Variable to track if a captcha challenge was issued. If this gets set to 8 // Variable to track if a captcha challenge was issued. If this gets set to
9 // true, it stays that way until we are told about successful login from 9 // true, it stays that way until we are told about successful login from
10 // the browser. This means subsequent errors (like invalid password) are 10 // the browser. This means subsequent errors (like invalid password) are
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 * Shows the appropriate sync setup page. 503 * Shows the appropriate sync setup page.
504 * @param {string} page A page of the sync setup to show. 504 * @param {string} page A page of the sync setup to show.
505 * @param {object} args Data from the C++ to forward on to the right 505 * @param {object} args Data from the C++ to forward on to the right
506 * section. 506 * section.
507 */ 507 */
508 showSyncSetupPage_: function(page, args) { 508 showSyncSetupPage_: function(page, args) {
509 this.setThrobbersVisible_(false); 509 this.setThrobbersVisible_(false);
510 510
511 // Hide an existing visible overlay. 511 // Hide an existing visible overlay.
512 var overlay = $('sync-setup-overlay'); 512 var overlay = $('sync-setup-overlay');
513 for (var i = 0; i < overlay.children.length; i++) 513
514 // Start at index 1 so the close button is always visible.
515 for (var i = 1; i < overlay.children.length; i++)
Dan Beam 2012/04/23 21:19:55 why not var children = document.querySelectorAl
James Hawkins 2012/04/24 16:16:27 Done.
514 overlay.children[i].hidden = true; 516 overlay.children[i].hidden = true;
515 517
516 this.setInputElementsDisabledState_(false); 518 this.setInputElementsDisabledState_(false);
517 519
518 // NOTE: Because both showGaiaLogin_() and showConfigure_() change the 520 // NOTE: Because both showGaiaLogin_() and showConfigure_() change the
519 // focus, we need to ensure that the overlay container and dialog aren't 521 // focus, we need to ensure that the overlay container and dialog aren't
520 // [hidden] (as trying to focus() nodes inside of a [hidden] DOM section 522 // [hidden] (as trying to focus() nodes inside of a [hidden] DOM section
521 // doesn't work). 523 // doesn't work).
522 if (page == 'done') 524 if (page == 'done')
523 this.closeOverlay_(); 525 this.closeOverlay_();
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 882
881 SyncSetupOverlay.showStopSyncingUI = function() { 883 SyncSetupOverlay.showStopSyncingUI = function() {
882 SyncSetupOverlay.getInstance().showStopSyncingUI_(); 884 SyncSetupOverlay.getInstance().showStopSyncingUI_();
883 }; 885 };
884 886
885 // Export 887 // Export
886 return { 888 return {
887 SyncSetupOverlay: SyncSetupOverlay 889 SyncSetupOverlay: SyncSetupOverlay
888 }; 890 };
889 }); 891 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/sync_setup_overlay.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698