mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-21 18:54:30 +01:00
fixes #9279
This commit is contained in:
parent
b4081e6cd4
commit
6393a78bf0
8
dist/js/bootstrap.js
vendored
8
dist/js/bootstrap.js
vendored
@ -1059,11 +1059,9 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
$(function () {
|
$(document)
|
||||||
var $body = $(document.body)
|
.on('shown.bs.modal', '.modal', function () { $(document.body).addClass('modal-open') })
|
||||||
.on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') })
|
.on('hidden.bs.modal', '.modal', function () { $(document.body).removeClass('modal-open') })
|
||||||
.on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') })
|
|
||||||
})
|
|
||||||
|
|
||||||
}(window.jQuery);
|
}(window.jQuery);
|
||||||
|
|
||||||
|
2
dist/js/bootstrap.min.js
vendored
2
dist/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
@ -237,10 +237,8 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
$(function () {
|
$(document)
|
||||||
var $body = $(document.body)
|
.on('shown.bs.modal', '.modal', function () { $(document.body).addClass('modal-open') })
|
||||||
.on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') })
|
.on('hidden.bs.modal', '.modal', function () { $(document.body).removeClass('modal-open') })
|
||||||
.on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') })
|
|
||||||
})
|
|
||||||
|
|
||||||
}(window.jQuery);
|
}(window.jQuery);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user