fix console error
parent
0d2d704b64
commit
f1703f31f6
|
@ -289,7 +289,10 @@ function reload() {
|
|||
}
|
||||
|
||||
function sendFormXHR(form, extraActionsOnSuccess) {
|
||||
close_inline_speed_emoji_modal();
|
||||
if (typeof close_inline_speed_emoji_modal === "function") {
|
||||
close_inline_speed_emoji_modal();
|
||||
}
|
||||
|
||||
const t = form.querySelector('[type="submit"]')
|
||||
t.disabled = true;
|
||||
t.classList.add("disabled");
|
||||
|
@ -674,8 +677,10 @@ if (screen_width < 768) {
|
|||
}
|
||||
}
|
||||
|
||||
document.addEventListener('hide.bs.modal', function (e) {
|
||||
close_inline_speed_emoji_modal();
|
||||
document.addEventListener('hide.bs.modal', () => {
|
||||
if (typeof close_inline_speed_emoji_modal === "function") {
|
||||
close_inline_speed_emoji_modal();
|
||||
}
|
||||
});
|
||||
|
||||
document.querySelectorAll('form').forEach(form => {
|
||||
|
|
Loading…
Reference in New Issue