Remove obsolete functions

This commit is contained in:
2026-06-16 10:25:24 +02:00
parent 404ce088f3
commit f8b09e18bd
6 changed files with 13 additions and 343 deletions
-21
View File
@@ -21,25 +21,4 @@
});
});
});
var hasChecked = !!document.querySelector('input.task-checkbox:checked');
if (hasChecked) {
var btn = document.querySelector('[data-action="clean-tasks"]');
if (btn) btn.hidden = false;
}
})();
function cleanUpTasks() {
openModal({
title: 'Clean up tasks',
body: 'Remove all completed tasks from this page?',
confirm: {
label: 'CLEAN UP',
danger: true,
onConfirm: function () {
closeModal();
postReplace(window.location.pathname + '?cleantasks=1', null, window.location.pathname);
}
}
});
}