add confirm modal for disabling all user scripts (#3917)

This commit is contained in:
gabryon99 2020-10-07 22:30:35 +02:00
parent 6f80b017a0
commit 6e4e195f56
3 changed files with 17 additions and 2 deletions

View file

@ -1746,7 +1746,7 @@ $(document).ready(function () {
});
});
$(`#btn-disable-all`).click(async function() {
$(`#disable-all-modal #btn-confirm-action`).click(async function() {
$(this).attr("disabled", "disabled");
$.post(`${http_prefix}/lua/toggle_all_user_scripts.lua`, {