diff options
| author | Mark Otto <[email protected]> | 2013-08-11 14:44:39 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-11 14:44:39 -0700 |
| commit | da75d0d30b2b206953b41324f2002bd3932c8e4b (patch) | |
| tree | 13adf514f17af080efdd472d948f632f6217d249 /js | |
| parent | 65c0f847e96df23dccd1aa76e2b7e2972618f86b (diff) | |
| parent | 5c6b995971a7795a1a95db2243d6fe2c006b1098 (diff) | |
| download | bootstrap-da75d0d30b2b206953b41324f2002bd3932c8e4b.tar.xz bootstrap-da75d0d30b2b206953b41324f2002bd3932c8e4b.zip | |
Merge branch '3.0.0-wip' of github.com:twbs/bootstrap into 3.0.0-wip
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); |
