diff options
Diffstat (limited to 'js')
| -rw-r--r-- | js/carousel.js | 5 |
1 files changed, 3 insertions, 2 deletions
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() |
