details:   https://code.tryton.org/tryton/commit/7c054af20de6
branch:    6.0
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
        (grafted from 8646addd9393e463e250a0a29cdd8f06b7b77ca7)
diffstat:

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

diffs (21 lines):

diff -r 8c13c204a426 -r 7c054af20de6 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
@@ -1204,13 +1204,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