mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
$(document).ready instead of $(function() {}) for ender support
This commit is contained in:
parent
472632ba51
commit
d1b594db7a
4
js/bootstrap-alerts.js
vendored
4
js/bootstrap-alerts.js
vendored
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
var transitionEnd
|
var transitionEnd
|
||||||
|
|
||||||
$(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
$.support.transition = (function () {
|
$.support.transition = (function () {
|
||||||
var thisBody = document.body || document.documentElement
|
var thisBody = document.body || document.documentElement
|
||||||
@ -97,7 +97,7 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
$(function () {
|
$(document).ready(function () {
|
||||||
new Alert($('body'), '.alert-message[data-alert] .close')
|
new Alert($('body'), '.alert-message[data-alert] .close')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
4
js/bootstrap-modal.js
vendored
4
js/bootstrap-modal.js
vendored
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
var transitionEnd
|
var transitionEnd
|
||||||
|
|
||||||
$(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
$.support.transition = (function () {
|
$.support.transition = (function () {
|
||||||
var thisBody = document.body || document.documentElement
|
var thisBody = document.body || document.documentElement
|
||||||
@ -216,7 +216,7 @@
|
|||||||
/* MODAL DATA- IMPLEMENTATION
|
/* MODAL DATA- IMPLEMENTATION
|
||||||
* ========================== */
|
* ========================== */
|
||||||
|
|
||||||
$(function () {
|
$(document).ready(function () {
|
||||||
$('body').delegate('[data-controls-modal]', 'click', function (e) {
|
$('body').delegate('[data-controls-modal]', 'click', function (e) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
var $this = $(this).data('show', true)
|
var $this = $(this).data('show', true)
|
||||||
|
2
js/bootstrap-scrollspy.js
vendored
2
js/bootstrap-scrollspy.js
vendored
@ -98,7 +98,7 @@
|
|||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
$(function () {
|
$(document).ready(function () {
|
||||||
$('body').scrollSpy('[data-scrollspy] li > a')
|
$('body').scrollSpy('[data-scrollspy] li > a')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
2
js/bootstrap-tabs.js
vendored
2
js/bootstrap-tabs.js
vendored
@ -55,7 +55,7 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
$(function () {
|
$(document).ready(function () {
|
||||||
$('body').tabs('ul[data-tabs] li > a, ul[data-pills] > li > a')
|
$('body').tabs('ul[data-tabs] li > a, ul[data-pills] > li > a')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
2
js/bootstrap-twipsy.js
vendored
2
js/bootstrap-twipsy.js
vendored
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
var transitionEnd
|
var transitionEnd
|
||||||
|
|
||||||
$(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
$.support.transition = (function () {
|
$.support.transition = (function () {
|
||||||
var thisBody = document.body || document.documentElement
|
var thisBody = document.body || document.documentElement
|
||||||
|
Loading…
Reference in New Issue
Block a user