diff --git a/js/carousel.js b/js/carousel.js index d7727bcce68ae94b4edf1f79cf5dc79a6cd4915a..eee2d0f8484b3133b0096e29546c2aac253f1431 100644 --- a/js/carousel.js +++ b/js/carousel.js @@ -199,6 +199,7 @@ var href var $this = $(this) var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7 + if (!$target.hasClass('carousel')) return var options = $.extend({}, $target.data(), $this.data()) var slideIndex = $this.attr('data-slide-to') if (slideIndex) options.interval = false