From 634ea59a259c8d3e4dc164528f984758eebd8883 Mon Sep 17 00:00:00 2001 From: Heinrich Fenkart Date: Fri, 13 Jun 2014 14:06:55 +0200 Subject: [PATCH] Allow tabs to fade in if no initially active pane is present; fixes #13814 --- js/tab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/tab.js b/js/tab.js index 8e922ddcbf..c46f5182bc 100644 --- a/js/tab.js +++ b/js/tab.js @@ -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) : -- 2.47.2