mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-08 06:36:33 +02:00
fix carousel and rebuild js
This commit is contained in:
2
js/bootstrap-carousel.js
vendored
2
js/bootstrap-carousel.js
vendored
@@ -168,7 +168,7 @@
|
||||
$(document).on('click.carousel.data-api', '[data-slide]', function (e) {
|
||||
var $this = $(this), href
|
||||
, $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|
||||
, options = !$target.data('carousel') && $.extend({}, $target.data(), $this.data())
|
||||
, options = $.extend({}, $target.data(), $this.data())
|
||||
$target.carousel(options)
|
||||
e.preventDefault()
|
||||
})
|
||||
|
Reference in New Issue
Block a user