details: https://code.tryton.org/tryton/commit/5bb1fab4fdd3
branch: 7.6
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 de6fa729303b -r 5bb1fab4fdd3 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
@@ -1369,13 +1369,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');
}
}());