Commit a7d5f7a6696aa80c92b34f14f84aa35b5322c11a
1 parent
7a628aee
Exists in
master
and in
2 other branches
Fixing page scroll bar when two modals are opened and one is closed
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
amadeus/static/js/chat.js
1 | 1 | var new_msgs = {}; |
2 | 2 | |
3 | +$(document).on('hidden.bs.modal', '.modal', function () { | |
4 | + $('.modal:visible').length && $(document.body).addClass('modal-open'); //Fixing scroll bar for modals | |
5 | +}); | |
6 | + | |
3 | 7 | $('#chat-modal-info').on('show.bs.modal', function (e) { |
4 | 8 | var header = $(this).find('.talk_header'); |
5 | 9 | if (header.length > 0) { | ... | ... |