1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 16:50:00 +02:00
This commit is contained in:
fat
2013-05-27 12:45:13 -07:00
parent 7cbb1c0452
commit 9257bdc097
3 changed files with 21 additions and 11 deletions

View File

@@ -434,7 +434,7 @@
// =================
$(document).on('click.bs.carousel.data-api', '[data-slide], [data-slide-to]', function (e) {
var $this = $(this), href
var $this = $(this), href
var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
var options = $.extend({}, $target.data(), $this.data())
var slideIndex
@@ -448,6 +448,13 @@
e.preventDefault()
})
$(window).on('load', function () {
$('[data-ride="carousel"]').each(function () {
var $carousel = $(this)
$carousel.carousel($carousel.data())
})
})
}(window.jQuery);
/* ========================================================================
* Bootstrap: collapse.js v3.0.0
@@ -1317,7 +1324,7 @@
Tooltip.prototype.toggle = function (e) {
var self = e ? $(e.currentTarget)[this.type](this._options).data('bs.' + this.type) : this
self.tip().hasClass('in') ? self.hide() : self.show()
self.tip().hasClass('in') ? self.leave(e) : self.enter(e)
}
Tooltip.prototype.destroy = function () {

File diff suppressed because one or more lines are too long