Fix #2136 add button to reset the cleanup exception list

This commit is contained in:
Kijin Sung 2023-07-04 22:43:17 +09:00
parent e98ba87f8e
commit d285a90e88
6 changed files with 32 additions and 1 deletions

View file

@ -2,11 +2,18 @@
(function() {
$(function() {
$('.add_cleanup_exception').on('click', function() {
$('.add_cleanup_exception').on('click', function(event) {
event.preventDefault();
const row = $(this).parents('tr');
exec_json('admin.procAdminAddCleanupException', { path: $(this).data('path') }, function() {
row.fadeOut();
});
});
$('.reset_exception').on('click', function(event) {
event.preventDefault();
exec_json('admin.procAdminResetCleanupException', {}, function() {
window.location.reload();
});
})
});
})();