From eb3333a612c4125ba2fa9f8825f70cc12cd9b439 Mon Sep 17 00:00:00 2001 From: fat Date: Wed, 17 Jul 2013 21:08:50 -0700 Subject: fix #7000 --- js/carousel.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'js') diff --git a/js/carousel.js b/js/carousel.js index 547007d2d..b014de270 100644 --- a/js/carousel.js +++ b/js/carousel.js @@ -189,12 +189,13 @@ 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 + var slideIndex = $this.attr('data-slide-to') + if (slideIndex) options.interval = false $target.carousel(options) if (slideIndex = $this.attr('data-slide-to')) { - $target.data('bs.carousel').pause().to(slideIndex).cycle() + $target.data('bs.carousel').to(slideIndex) } e.preventDefault() -- cgit v1.2.3