aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-26 09:26:18 +0000
committerMario <mario@mariovavti.com>2024-03-26 09:28:25 +0000
commitc26ae553e65335f21a179c2e0f54b9e0ec0586d9 (patch)
treec515e7e8ca221f128b5957789e62ea3fae072295
parent8d78698d00eafa5edb3a36571fe1aed081dd1bd6 (diff)
downloadvolse-hubzilla-c26ae553e65335f21a179c2e0f54b9e0ec0586d9.tar.gz
volse-hubzilla-c26ae553e65335f21a179c2e0f54b9e0ec0586d9.tar.bz2
volse-hubzilla-c26ae553e65335f21a179c2e0f54b9e0ec0586d9.zip
if the updated item contains an open modal, the modal we be replaced with the new data but the backdrop will stay because it is attached to the end of the page -> remove it
(cherry picked from commit e0ac7b7f9ffb3e2602c23f893d75aba706a234e5)
-rw-r--r--view/js/main.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index ba863b111..c9798dede 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -1046,6 +1046,8 @@ function liveUpdate(notify_id) {
in_progress = false;
$('#image_counter').html('');
+ // remove modal backdrop in case the update was triggered from a modal
+ $('.modal-backdrop').remove();
})
.done( function( instance ) {
//console.log('all images successfully loaded');