From e0ac7b7f9ffb3e2602c23f893d75aba706a234e5 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 26 Mar 2024 09:26:18 +0000 Subject: 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 --- view/js/main.js | 2 ++ 1 file changed, 2 insertions(+) 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'); -- cgit v1.2.3