mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 04:49:36 -07:00
Fix for stacked modals
This commit is contained in:
parent
876ff65694
commit
de6215a933
1 changed files with 12 additions and 0 deletions
|
@ -395,6 +395,18 @@ ${next.headerIncludes()}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Allow stacked bootstrap modals
|
||||||
|
$(document).on('show.bs.modal', '.modal', function (event) {
|
||||||
|
var zIndex = 1040 + (10 * $('.modal:visible').length);
|
||||||
|
$(this).css('z-index', zIndex);
|
||||||
|
setTimeout(function() {
|
||||||
|
$('.modal-backdrop').not('.modal-stack').css('z-index', zIndex - 1).addClass('modal-stack');
|
||||||
|
}, 0);
|
||||||
|
});
|
||||||
|
$(document).on('hidden.bs.modal', '.modal', function () {
|
||||||
|
$('.modal:visible').length && $(document.body).addClass('modal-open');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
% if _session['user_group'] != 'admin':
|
% if _session['user_group'] != 'admin':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue