]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix #13386 13660/head
authorChris Rebert <code@rebertia.com>
Thu, 22 May 2014 16:00:19 +0000 (09:00 -0700)
committerChris Rebert <code@rebertia.com>
Fri, 13 Jun 2014 19:12:32 +0000 (12:12 -0700)
js/carousel.js

index 05631f7a33d65f147e68baf5c00ac86547e180ae..d3e7e52b4ecdd69c68e97feadfa934f75ef3feef 100644 (file)
       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