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

Unified Diff: chrome/browser/resources/tab_modal_dialog.html

Issue 8851007: WIP / Do not commit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/repost_form_warning.html ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/tab_modal_dialog.html
diff --git a/chrome/browser/resources/repost_form_warning.html b/chrome/browser/resources/tab_modal_dialog.html
similarity index 82%
rename from chrome/browser/resources/repost_form_warning.html
rename to chrome/browser/resources/tab_modal_dialog.html
index a2d8834a536e2860999bb90c6e7ad9417b311b46..8637543beaff7e976460777ded1ed1569dd4a6f0 100644
--- a/chrome/browser/resources/repost_form_warning.html
+++ b/chrome/browser/resources/tab_modal_dialog.html
@@ -22,6 +22,7 @@
}
</style>
+ <script src="chrome://resources/js/i18n_template.js"></script>
<script>
function $(o) {
return document.getElementById(o);
@@ -29,7 +30,7 @@
function disableControls() {
$('cancel').disabled = true;
- $('resend').disabled = true;
+ $('accept').disabled = true;
}
function cancel() {
@@ -51,6 +52,7 @@
}
function load() {
+ i18nTemplate.process(document, JSON.parse(chrome.dialogArguments));
document.addEventListener('keydown', handleKeyDown);
$('form').onsubmit = handleSubmit;
$('cancel').onclick = cancel;
@@ -61,11 +63,11 @@
</script>
</head>
<body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
- <div id="explanation" i18n-content="explanation"></div>
+ <div id="explanation" i18n-content="message"></div>
<form id="form">
<div id="buttons">
<input id="cancel" type="reset" i18n-values="value:cancel" autofocus>
- <input id="resend" type="submit" i18n-values="value:resend">
+ <input id="accept" type="submit" i18n-values="value:accept">
</div>
</form>
</body>
« no previous file with comments | « chrome/browser/resources/repost_form_warning.html ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698