details:   https://code.tryton.org/tryton/commit/8646addd9393
branch:    default
user:      Cédric Krier <[email protected]>
date:      Fri Feb 06 19:00:24 2026 +0100
description:
        Fix order and z-index of backdrop for stacked modal

        Closes #14588
diffstat:

 sao/src/sao.js |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (21 lines):

diff -r 86b3db529010 -r 8646addd9393 sao/src/sao.js
--- a/sao/src/sao.js    Thu Feb 05 18:21:05 2026 +0100
+++ b/sao/src/sao.js    Fri Feb 06 19:00:24 2026 +0100
@@ -1339,13 +1339,13 @@
         var modalZIndex = 1040;
         jQuery('.modal.in').each(function(index) {
             var $modal = jQuery(this);
-            modalZIndex++;
+            modalZIndex += 10;
             $modal.css('zIndex', modalZIndex);
-            $modal.next('.modal-backdrop.in').addClass('hidden')
-            .css('zIndex', modalZIndex - 1);
+            $modal.prev('.modal-backdrop.in').addClass('hidden')
+            .css('zIndex', modalZIndex - 5);
         });
         jQuery('.modal.in:visible:last').focus()
-        .next('.modal-backdrop.in').removeClass('hidden');
+        .prev('.modal-backdrop.in').removeClass('hidden');
     }
 
 }());

Reply via email to