|
@@ -16,7 +16,7 @@ function sib(me,tag) { return chi(me.parentElement, tag); }
|
|
|
// each Array will be updated to the current value.
|
|
|
function classmod(elem,tags) {
|
|
|
for (var i = 0; i < tags.length; i++)
|
|
|
- tags[i][1] = elem.classList.toggle(tags[i]);
|
|
|
+ tags[i][1] = elem.classList.toggle(...tags[i]);
|
|
|
return tags;
|
|
|
}
|
|
|
|
|
@@ -150,8 +150,8 @@ function upload(form,data) {
|
|
|
|
|
|
// Automatically reload the page after successful upload
|
|
|
const rf = parseInt(xhr.getResponseHeader('Refresh'));
|
|
|
- if (rf && ok)
|
|
|
- setTimeout(() => window.location.reload(), rf * 1000);
|
|
|
+ //if (rf && ok)
|
|
|
+ // setTimeout(() => window.location.reload(), rf * 1000);
|
|
|
}, PassiveListener);
|
|
|
|
|
|
xhr.open(form.method, form.action);
|