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