|
|
@ -1258,12 +1258,10 @@ define([
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$(currentSize).html(Messages._getKey('trimHistory_currentSize', [UIElements.prettySize(size)]));
|
|
|
|
$(currentSize).html(Messages._getKey('trimHistory_currentSize', [UIElements.prettySize(size)]));
|
|
|
|
$button.click(function () {
|
|
|
|
$button.prop('disabled', '');
|
|
|
|
UI.confirmButton(button, {
|
|
|
|
UI.confirmButton(button, {
|
|
|
|
classes: 'btn-danger'
|
|
|
|
classes: 'btn-danger'
|
|
|
|
}, function (yes) {
|
|
|
|
}, function () {
|
|
|
|
if (!yes) { return; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$button.remove();
|
|
|
|
$button.remove();
|
|
|
|
spinner.spin();
|
|
|
|
spinner.spin();
|
|
|
|
APP.history.execCommand('TRIM_HISTORY', {
|
|
|
|
APP.history.execCommand('TRIM_HISTORY', {
|
|
|
@ -1278,7 +1276,6 @@ define([
|
|
|
|
redrawTrimHistory(cb, $div);
|
|
|
|
redrawTrimHistory(cb, $div);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}).prop('disabled', '');
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$div.find('#cp-settings-trim-container').remove();
|
|
|
|
$div.find('#cp-settings-trim-container').remove();
|
|
|
|