mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 08:42:15 +09:00
Fix #2136 add button to reset the cleanup exception list
This commit is contained in:
parent
e98ba87f8e
commit
d285a90e88
6 changed files with 32 additions and 1 deletions
|
|
@ -65,6 +65,9 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<div class="x_clearfix btnArea">
|
||||
<div class="x_pull-left">
|
||||
<button type="button" class="x_btn reset_exception">{sprintf($lang->cmd_cleanup_reset_exception, count($exceptions))}</button>
|
||||
</div>
|
||||
<div class="x_pull-right">
|
||||
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_delete}</button>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
});
|
||||
})
|
||||
});
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue