diff options
author | fat <jacobthornton@gmail.com> | 2013-07-18 08:08:50 +0400 |
---|---|---|
committer | fat <jacobthornton@gmail.com> | 2013-07-18 08:08:50 +0400 |
commit | eb3333a612c4125ba2fa9f8825f70cc12cd9b439 (patch) | |
tree | e0a6ae6132dbd7baef231eff506ec81f11f7e0cf /docs/assets/js/bootstrap.js | |
parent | 0f64c21049dc5f3f184ec28bdab770f5c4ad594e (diff) |
fix #7000
Diffstat (limited to 'docs/assets/js/bootstrap.js')
-rw-r--r-- | docs/assets/js/bootstrap.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js index fc2da67090..d5ce3c6195 100644 --- a/docs/assets/js/bootstrap.js +++ b/docs/assets/js/bootstrap.js @@ -437,12 +437,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() @@ -612,8 +613,7 @@ var parent = $this.attr('data-parent') var $parent = parent && $(parent) - console.log(data, data && data.transitioning) - if (data && !data.transitioning) { + if (!data || !data.transitioning) { if ($parent) $parent.find('[data-toggle=collapse][data-parent=' + parent + ']').not($this).addClass('collapsed') $this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed') } |