diff --git a/js/bootstrap-alerts.js b/js/bootstrap-alerts.js index 77708246c9..6b284690b6 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 f4d5977c85..41a7a4115c 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 1e4e9ec7dd..7d9bf7b6c2 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 37ca597130..7bac0bc601 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 e476407f77..5ac73291b7 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