mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-10 06:37:32 +08:00
Fix session modal overlap [SCI-7522]
This commit is contained in:
parent
176f3c48e1
commit
007aeaa2b6
2 changed files with 2 additions and 2 deletions
app/assets/javascripts
|
@ -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'));
|
||||
|
|
|
@ -12,7 +12,7 @@ function initShowPassword() {
|
|||
}
|
||||
|
||||
$(document).on('turbolinks:load', function() {
|
||||
initShowPassword()
|
||||
initShowPassword();
|
||||
});
|
||||
|
||||
$(document).on('click', '.show-password', function() {
|
||||
|
|
Loading…
Reference in a new issue