forked from rDrama/rDrama
1
0
Fork 0

make sure speed emoji modal always closes

master
Aevann 2023-10-17 21:59:16 +03:00
parent 1268b5cae7
commit afd101abc9
3 changed files with 9 additions and 0 deletions

View File

@ -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();
}

View File

@ -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')) {

View File

@ -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');
}