Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJacob Thornton <jacobthornton@gmail.com>2011-09-16 10:16:06 +0400
committerJacob Thornton <jacobthornton@gmail.com>2011-09-16 10:16:06 +0400
commitd1b594db7a7307efd7de29a2875046166c69a76f (patch)
tree42499e622f9878a475bc5157870c52f044cfb2ab /js
parent472632ba51a50457370c55267a736e3efc4c09cc (diff)
$(document).ready instead of $(function() {}) for ender support
Diffstat (limited to 'js')
-rw-r--r--js/bootstrap-alerts.js4
-rw-r--r--js/bootstrap-modal.js4
-rw-r--r--js/bootstrap-scrollspy.js2
-rw-r--r--js/bootstrap-tabs.js2
-rw-r--r--js/bootstrap-twipsy.js2
5 files changed, 7 insertions, 7 deletions
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