restore accidentially removed lines

master
Aevann 2023-08-12 15:48:40 +03:00
parent 6e188c1daa
commit 1aac460298
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,9 @@ function createXhrWithFormKey(url, form=new FormData()) {
}
function postToast(t, url, data, extraActionsOnSuccess, extraActionsOnFailure) {
t.disabled = true;
t.classList.add("disabled");
let form = new FormData();
if (typeof data === 'object' && data !== null) {
for(let k of Object.keys(data)) {