aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-26 09:26:18 +0000
committerMario <mario@mariovavti.com>2024-03-26 09:26:18 +0000
commite0ac7b7f9ffb3e2602c23f893d75aba706a234e5 (patch)
treee0135f6981a7602a580364d82006e493623250e4 /view
parent80d1e0790852c4df4768820cad8a4557dcfecd73 (diff)
downloadvolse-hubzilla-e0ac7b7f9ffb3e2602c23f893d75aba706a234e5.tar.gz
volse-hubzilla-e0ac7b7f9ffb3e2602c23f893d75aba706a234e5.tar.bz2
volse-hubzilla-e0ac7b7f9ffb3e2602c23f893d75aba706a234e5.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
Diffstat (limited to 'view')
-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');