Disable trim history is nothing to remove

pull/1/head
yflory 5 years ago
parent 9c6ab86e4d
commit 8d01711244

@ -1234,14 +1234,14 @@ define([
return; return;
} }
channels = obj.channels; channels = obj.channels;
size = UIElements.prettySize(Number(obj.size)); size = Number(obj.size);
})); }));
}).nThen(function () { }).nThen(function () {
if (!size || size < 1024) { if (!size || size < 1024) {
$(currentSize).html(Messages.trimHistory_noHistory || 'no history...'); // XXX $(currentSize).html(Messages.trimHistory_noHistory || 'no history...'); // XXX
return; return;
} }
$(currentSize).html(Messages._getKey('trimHistory_currentSize', [size])); $(currentSize).html(Messages._getKey('trimHistory_currentSize', [UIElements.prettySize(size)]));
$button.click(function () { $button.click(function () {
//UI.confirm(Messages.trimHistory_confirm, function (yes) { //UI.confirm(Messages.trimHistory_confirm, function (yes) {
UI.confirmButton(button, { UI.confirmButton(button, {

Loading…
Cancel
Save