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

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

Issue 3419020: dom-ui settings: properly implement the 'metrics reporting' checkbox.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Rebase to r60664. Created 10 years, 2 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/options/advanced_options.js ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 /** 9 /**
10 * AlertOverlay class 10 * AlertOverlay class
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 $('alertOverlayTitle').style.display = 'none'; 87 $('alertOverlayTitle').style.display = 'none';
88 } 88 }
89 if (message != undefined) { 89 if (message != undefined) {
90 $('alertOverlayMessage').textContent = message; 90 $('alertOverlayMessage').textContent = message;
91 $('alertOverlayMessage').style.display = 'block'; 91 $('alertOverlayMessage').style.display = 'block';
92 } else { 92 } else {
93 $('alertOverlayMessage').style.display = 'none'; 93 $('alertOverlayMessage').style.display = 'none';
94 } 94 }
95 $('alertOverlayOk').textContent = 95 $('alertOverlayOk').textContent =
96 (okTitle != undefined ? okTitle 96 (okTitle != undefined ? okTitle
97 : LocalStrings.getString('ok')); 97 : localStrings.getString('ok'));
98 $('alertOverlayCancel').textContent = 98 if (cancelTitle != '') {
99 (cancelTitle != undefined ? cancelTitle 99 $('alertOverlayCancel').textContent =
100 : LocalStrings.getString('cancel')); 100 (cancelTitle != undefined ? cancelTitle
101 : localStrings.getString('cancel'));
102 $('alertOverlayCancel').style.display = 'inline';
103 } else {
104 $('alertOverlayCancel').style.display = 'none';
105 }
101 106
102 AlertOverlay.getInstance().okCallback = okCallback; 107 AlertOverlay.getInstance().okCallback = okCallback;
103 AlertOverlay.getInstance().cancelCallback = cancelCallback; 108 AlertOverlay.getInstance().cancelCallback = cancelCallback;
104 109
105 OptionsPage.showOverlay('alertOverlay'); 110 OptionsPage.showOverlay('alertOverlay');
106 } 111 }
107 112
108 // Export 113 // Export
109 return { 114 return {
110 AlertOverlay: AlertOverlay 115 AlertOverlay: AlertOverlay
111 }; 116 };
112 117
113 }); 118 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/advanced_options.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698