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

Unified 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, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/options/advanced_options.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/alert_overlay.js
===================================================================
--- chrome/browser/resources/options/alert_overlay.js (revision 60664)
+++ chrome/browser/resources/options/alert_overlay.js (working copy)
@@ -94,10 +94,15 @@
}
$('alertOverlayOk').textContent =
(okTitle != undefined ? okTitle
- : LocalStrings.getString('ok'));
- $('alertOverlayCancel').textContent =
- (cancelTitle != undefined ? cancelTitle
- : LocalStrings.getString('cancel'));
+ : localStrings.getString('ok'));
+ if (cancelTitle != '') {
+ $('alertOverlayCancel').textContent =
+ (cancelTitle != undefined ? cancelTitle
+ : localStrings.getString('cancel'));
+ $('alertOverlayCancel').style.display = 'inline';
+ } else {
+ $('alertOverlayCancel').style.display = 'none';
+ }
AlertOverlay.getInstance().okCallback = okCallback;
AlertOverlay.getInstance().cancelCallback = cancelCallback;
« 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