fix issue with filemanager modal and scroll
This commit is contained in:
parent
0693559449
commit
5e21a23cb1
|
@ -25,8 +25,15 @@ const openModal = function (url) {
|
||||||
|
|
||||||
module.exports = function () {
|
module.exports = function () {
|
||||||
let click = 0
|
let click = 0
|
||||||
|
const body = $('body')
|
||||||
|
|
||||||
$('body').on('click', '*[data-modal]', (e) => {
|
body.on('hidden.bs.modal', '.modal', (e) => {
|
||||||
|
if ($('.modal.show').length) {
|
||||||
|
$('body').addClass('modal-open')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
body.on('click', '*[data-modal]', (e) => {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue