]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
if carousel element already open, don't reopen it duh bruh bruh
authorfat <jacobthornton@gmail.com>
Thu, 20 Dec 2012 09:05:07 +0000 (01:05 -0800)
committerfat <jacobthornton@gmail.com>
Thu, 20 Dec 2012 09:05:07 +0000 (01:05 -0800)
js/bootstrap-collapse.js

index 9e721121888beb191161ecd8b789592e25779040..6755aa7e2014fa198ce3944f0044d6e9a46cd0b2 100644 (file)
@@ -52,7 +52,7 @@
         , actives
         , hasData
 
-      if (this.transitioning) return
+      if (this.transitioning || this.$element.hasClass('in')) return
 
       dimension = this.dimension()
       scroll = $.camelCase(['scroll', dimension].join('-'))