Fix session modal overlap [SCI-7522]

This commit is contained in:
Anton 2022-11-23 11:57:52 +01:00
parent 176f3c48e1
commit 007aeaa2b6
2 changed files with 2 additions and 2 deletions
app/assets/javascripts

View file

@ -319,7 +319,7 @@ window.I18n = I18n
// Multiple modal support
// https://stackoverflow.com/a/24914782
$(document).on('show.bs.modal', '.modal', function() {
$(document).on('shown.bs.modal', '.modal', function() {
const zIndex = 1040 + 10 * $('.modal:visible').length;
$(this).css('z-index', zIndex);
setTimeout(() => $('.modal-backdrop').not('.modal-stack').css('z-index', zIndex - 1).addClass('modal-stack'));

View file

@ -12,7 +12,7 @@ function initShowPassword() {
}
$(document).on('turbolinks:load', function() {
initShowPassword()
initShowPassword();
});
$(document).on('click', '.show-password', function() {