aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2013-07-28 22:14:43 -0700
committerJacob Thornton <[email protected]>2013-07-28 22:14:43 -0700
commite5a7af36d5a67bb4c3dfa5cc3e9924c3c901d0d3 (patch)
tree7d14a859717116939794a4846cdf45b937fb845b /js
parentce5737870545b908da0dd0744906edd12a9c126c (diff)
downloadbootstrap-e5a7af36d5a67bb4c3dfa5cc3e9924c3c901d0d3.tar.xz
bootstrap-e5a7af36d5a67bb4c3dfa5cc3e9924c3c901d0d3.zip
fixes #8703
Diffstat (limited to 'js')
-rw-r--r--js/modal.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/js/modal.js b/js/modal.js
index 83095e8ff..d53cc9eaf 100644
--- a/js/modal.js
+++ b/js/modal.js
@@ -234,8 +234,10 @@
})
})
- var $body = $(document.body)
- .on('shown.bs.modal', '.modal', function () { $body.addClass('modal-open') })
- .on('hidden.bs.modal', '.modal', function () { $body.removeClass('modal-open') })
+ $(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') })
+ })
}(window.jQuery);