diff options
Diffstat (limited to 'dist/js/bootstrap.js')
| -rw-r--r-- | dist/js/bootstrap.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js index 1ad5a5cbb..e27bba13c 100644 --- a/dist/js/bootstrap.js +++ b/dist/js/bootstrap.js @@ -1059,11 +1059,9 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") } }) }) - $(function () { - var $body = $(document.body) - .on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') }) - .on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') }) - }) + $(document) + .on('shown.bs.modal', '.modal', function () { $(document.body).addClass('modal-open') }) + .on('hidden.bs.modal', '.modal', function () { $(document.body).removeClass('modal-open') }) }(window.jQuery); |
