aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-07-28 22:21:27 -0700
committerMark Otto <[email protected]>2013-07-28 22:21:27 -0700
commite74a25a3b80c915565cbcf76b5f7d69063894b58 (patch)
tree3c8ab9e006958b6202556daf140698aa969b95d1 /js
parent774f173a18d93ba5e80d8c4c8207c8f961004da6 (diff)
parenta31c5cea422b858f546529009723c4d33dd0d0ea (diff)
downloadbootstrap-e74a25a3b80c915565cbcf76b5f7d69063894b58.tar.xz
bootstrap-e74a25a3b80c915565cbcf76b5f7d69063894b58.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.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);