aboutsummaryrefslogtreecommitdiff
path: root/js/bootstrap-modal.js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2011-09-15 23:16:06 -0700
committerJacob Thornton <[email protected]>2011-09-15 23:16:06 -0700
commitd1b594db7a7307efd7de29a2875046166c69a76f (patch)
tree42499e622f9878a475bc5157870c52f044cfb2ab /js/bootstrap-modal.js
parent472632ba51a50457370c55267a736e3efc4c09cc (diff)
downloadbootstrap-d1b594db7a7307efd7de29a2875046166c69a76f.tar.xz
bootstrap-d1b594db7a7307efd7de29a2875046166c69a76f.zip
$(document).ready instead of $(function() {}) for ender support
Diffstat (limited to 'js/bootstrap-modal.js')
-rw-r--r--js/bootstrap-modal.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js
index f4d5977c8..41a7a4115 100644
--- a/js/bootstrap-modal.js
+++ b/js/bootstrap-modal.js
@@ -25,7 +25,7 @@
var transitionEnd
- $(function () {
+ $(document).ready(function () {
$.support.transition = (function () {
var thisBody = document.body || document.documentElement
@@ -216,7 +216,7 @@
/* MODAL DATA- IMPLEMENTATION
* ========================== */
- $(function () {
+ $(document).ready(function () {
$('body').delegate('[data-controls-modal]', 'click', function (e) {
e.preventDefault()
var $this = $(this).data('show', true)