make sure speed emoji modal always closes
parent
1268b5cae7
commit
afd101abc9
|
@ -359,4 +359,5 @@ function cancel(fullname) {
|
|||
document.getElementById(`reply-to-${fullname}`).classList.add('d-none')
|
||||
remove_dialog();
|
||||
restore_reply_buttons(fullname)
|
||||
close_inline_speed_emoji_modal();
|
||||
}
|
||||
|
|
|
@ -289,6 +289,7 @@ function reload() {
|
|||
}
|
||||
|
||||
function sendFormXHR(form, extraActionsOnSuccess) {
|
||||
close_inline_speed_emoji_modal();
|
||||
const t = form.querySelector('[type="submit"]')
|
||||
t.disabled = true;
|
||||
t.classList.add("disabled");
|
||||
|
@ -673,6 +674,10 @@ if (screen_width < 768) {
|
|||
}
|
||||
}
|
||||
|
||||
document.addEventListener('hide.bs.modal', function (e) {
|
||||
close_inline_speed_emoji_modal();
|
||||
});
|
||||
|
||||
document.querySelectorAll('form').forEach(form => {
|
||||
form.addEventListener('submit', (e) => {
|
||||
if (form.classList.contains('is-submitting')) {
|
||||
|
|
|
@ -24,6 +24,7 @@ function updateBux(mobile=false) {
|
|||
}
|
||||
|
||||
function transferCoins(t, mobile=false) {
|
||||
close_inline_speed_emoji_modal();
|
||||
|
||||
for(let el of document.getElementsByClassName('toggleable')) {
|
||||
el.classList.add('d-none');
|
||||
|
@ -47,6 +48,8 @@ function transferCoins(t, mobile=false) {
|
|||
}
|
||||
|
||||
function transferBux(t, mobile=false) {
|
||||
close_inline_speed_emoji_modal();
|
||||
|
||||
for(let el of document.getElementsByClassName('toggleable')) {
|
||||
el.classList.add('d-none');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue