2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

Merge pull request #13815 from hnrch02/tabs-fade-not-active

Allow tabs to fade in if no initially active pane is present
This commit is contained in:
Jacob
2014-07-06 13:50:54 -07:00
2 changed files with 107 additions and 6 deletions
+2 -2
View File
@@ -55,7 +55,7 @@
var $active = container.find('> .active')
var transition = callback
&& $.support.transition
&& $active.hasClass('fade')
&& (($active.length && $active.hasClass('fade')) || !!container.find('> .fade').length)
function next() {
$active
@@ -79,7 +79,7 @@
callback && callback()
}
transition ?
$active.length && transition ?
$active
.one('bsTransitionEnd', next)
.emulateTransitionEnd(150) :