diff --git a/js/bootstrap-alerts.js b/js/bootstrap-alerts.js index 77708246c9fe68c32a507ce07c71672e788cd386..6b284690b623367f6931a490f9ddb040c2d9d4f4 100644 --- a/js/bootstrap-alerts.js +++ b/js/bootstrap-alerts.js @@ -25,7 +25,7 @@ var transitionEnd - $(function () { + $(document).ready(function () { $.support.transition = (function () { var thisBody = document.body || document.documentElement @@ -97,7 +97,7 @@ }) } - $(function () { + $(document).ready(function () { new Alert($('body'), '.alert-message[data-alert] .close') }) diff --git a/js/bootstrap-modal.js b/js/bootstrap-modal.js index f4d5977c85b00937664c2dbbc8a0782e82508cdb..41a7a4115c4f66a89c30acb7860a2500a523eaca 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) diff --git a/js/bootstrap-scrollspy.js b/js/bootstrap-scrollspy.js index 1e4e9ec7dd815a74f13ea7c9ef247b930548699a..7d9bf7b6c28acec6817be52f99cd4051b99532e2 100644 --- a/js/bootstrap-scrollspy.js +++ b/js/bootstrap-scrollspy.js @@ -98,7 +98,7 @@ return this } - $(function () { + $(document).ready(function () { $('body').scrollSpy('[data-scrollspy] li > a') }) diff --git a/js/bootstrap-tabs.js b/js/bootstrap-tabs.js index 37ca59713039418136a241082c95dc2c5b585bb0..7bac0bc6010b65aa0556275c5e4e38ac7a7da76e 100644 --- a/js/bootstrap-tabs.js +++ b/js/bootstrap-tabs.js @@ -55,7 +55,7 @@ }) } - $(function () { + $(document).ready(function () { $('body').tabs('ul[data-tabs] li > a, ul[data-pills] > li > a') }) diff --git a/js/bootstrap-twipsy.js b/js/bootstrap-twipsy.js index e476407f77321c280c8614339d84b195189e02ef..5ac73291b7e3d298d69c4fe1964b944f236456dd 100644 --- a/js/bootstrap-twipsy.js +++ b/js/bootstrap-twipsy.js @@ -26,7 +26,7 @@ var transitionEnd - $(function () { + $(document).ready(function () { $.support.transition = (function () { var thisBody = document.body || document.documentElement