diff options
| author | Jacob Thornton <[email protected]> | 2013-08-11 14:32:32 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2013-08-11 14:32:32 -0700 |
| commit | 6393a78bf01c9347f2ab0e6db46127bf43a5727c (patch) | |
| tree | 6df3d9ff4990875a239a6c74219a5592d4eb0eb5 /js | |
| parent | b4081e6cd4c3dfd88c479f23438c455d755de782 (diff) | |
| download | bootstrap-6393a78bf01c9347f2ab0e6db46127bf43a5727c.tar.xz bootstrap-6393a78bf01c9347f2ab0e6db46127bf43a5727c.zip | |
fixes #9279
Diffstat (limited to 'js')
| -rw-r--r-- | js/modal.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/js/modal.js b/js/modal.js index ff3de1d94..420f13d5f 100644 --- a/js/modal.js +++ b/js/modal.js @@ -237,10 +237,8 @@ }) }) - $(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); |
