diff --git a/www/common/common-interface.js b/www/common/common-interface.js
index fca655360..612e03fef 100644
--- a/www/common/common-interface.js
+++ b/www/common/common-interface.js
@@ -602,13 +602,12 @@ define([
UI.confirmButton = function (originalBtn, config, _cb) {
config = config || {};
var cb = Util.once(Util.mkAsync(_cb));
-
var classes = 'btn ' + (config.classes || 'btn-primary');
var button = h('button', {
"class": classes,
title: config.title || ''
- }, Messages.areYouSure || "Are you sure?"); // XXX
+ }, Messages.areYouSure);
var $button = $(button);
var div = h('div', {
diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js
index fca273e4f..fdc29938f 100644
--- a/www/common/common-ui-elements.js
+++ b/www/common/common-ui-elements.js
@@ -797,8 +797,6 @@ define([
return void cb(void 0, $d);
}
- Messages.historyTrim_historySize = 'History: {0}'; // XXX
- Messages.historyTrim_contentsSize = 'Contents: {0}'; // XXX
var p = Math.round((historyBytes / bytes) * 100);
var historyPrettySize = UIElements.prettySize(historyBytes);
@@ -821,7 +819,7 @@ define([
h('span.cp-app-prop-content', Messages._getKey('historyTrim_contentsSize', [contentsPrettySize]))
]),
]),
- button = h('button.btn.btn-danger-alt.no-margin', Messages.trimHistory_button || 'test'), // XXX
+ button = h('button.btn.btn-danger-alt.no-margin', Messages.trimHistory_button),
spinner.spinner
]);
$d.append(size);
@@ -842,7 +840,7 @@ define([
}, function (obj) {
spinner.hide();
if (obj && obj.error) {
- $(size).append(h('div.alert.alert-danger', Messages.trimHistory_error || 'error')); // XXX
+ $(size).append(h('div.alert.alert-danger', Messages.trimHistory_error));
return;
}
$(size).remove();
diff --git a/www/settings/inner.js b/www/settings/inner.js
index bf47aefcb..f92b2e583 100644
--- a/www/settings/inner.js
+++ b/www/settings/inner.js
@@ -1215,7 +1215,7 @@ define([
var spinner = UI.makeSpinner();
var button = h('button.btn.btn-danger-alt', {
disabled: 'disabled'
- }, Messages.trimHistory_button || 'delete history... xxx'); // XXX
+ }, Messages.trimHistory_button);
var currentSize = h('p', $(spinner.spinner).clone()[0]);
var content = h('div#cp-settings-trim-container', [
currentSize,
@@ -1226,7 +1226,7 @@ define([
if (!privateData.isDriveOwned) {
var href = privateData.origin + privateData.pathname + '#' + 'account';
- $(currentSize).html(Messages.trimHistory_needMigration || 'Need migration Click'); // XXX
+ $(currentSize).html(Messages.trimHistory_needMigration);
$(currentSize).find('a').prop('href', href).click(function (e) {
e.preventDefault();
$('.cp-sidebarlayout-category[data-category="account"]').click();
@@ -1234,7 +1234,6 @@ define([
return void cb(content);
}
- Messages.trimHistory_currentSize = 'Size XXX: {0}'; // XXX
var $button = $(button);
var size;
@@ -1255,12 +1254,11 @@ define([
}));
}).nThen(function () {
if (!size || size < 1024) {
- $(currentSize).html(Messages.trimHistory_noHistory || 'no history...'); // XXX
+ $(currentSize).html(Messages.trimHistory_noHistory);
return;
}
$(currentSize).html(Messages._getKey('trimHistory_currentSize', [UIElements.prettySize(size)]));
$button.click(function () {
- //UI.confirm(Messages.trimHistory_confirm, function (yes) {
UI.confirmButton(button, {
classes: 'btn-danger'
}, function (yes) {
@@ -1272,7 +1270,7 @@ define([
channels: channels
}, function (obj) {
if (obj && obj.error) {
- var error = h('div.alert.alert-danger', Messages.trimHistory_error || 'error'); // XXX
+ var error = h('div.alert.alert-danger', Messages.trimHistory_error);
$(content).empty().append(error);
return;
}
@@ -1288,9 +1286,6 @@ define([
};
makeBlock('trim-history', function (cb, $div) {
if (!common.isLoggedIn()) { return; }
- // XXX settings_trimHistoryTitle, settings_trimHistoryHint, trimHistory_button, trimHistory_error
- // XXX trimHistory_success, trimHistory_confirm, trimHistory_noHistory
- // XXX trimHistory_needMigration (clickable tag (no attribute) to go to the "account" part of settings)
redrawTrimHistory(cb, $div);
}, true);