Showing
2 changed files
with
10 additions
and
1 deletions
@@ -38,7 +38,7 @@ Tab.prototype.show = function() { | @@ -38,7 +38,7 @@ Tab.prototype.show = function() { | ||
38 | 38 | ||
39 | let $target = $(targetSelector); | 39 | let $target = $(targetSelector); |
40 | 40 | ||
41 | - if ($nav.hasClass('active')) { | 41 | + if ($nav.hasClass('active') || $nav.parent().hasClass('active')) { |
42 | return; | 42 | return; |
43 | } | 43 | } |
44 | 44 | ||
@@ -78,6 +78,10 @@ $(document).on('click', '[data-trigger=tab]', function(event) { | @@ -78,6 +78,10 @@ $(document).on('click', '[data-trigger=tab]', function(event) { | ||
78 | let $nav = $(event.target); | 78 | let $nav = $(event.target); |
79 | let fun = ''; | 79 | let fun = ''; |
80 | 80 | ||
81 | + if ($nav.hasClass('active') || $nav.parent().hasClass('active')) { | ||
82 | + return false; | ||
83 | + } | ||
84 | + | ||
81 | $.each($nav.data(), function(index) { | 85 | $.each($nav.data(), function(index) { |
82 | if (index.substr(0, 3) === 'fun') { | 86 | if (index.substr(0, 3) === 'fun') { |
83 | fun = index.substr(3, index.length - 3); | 87 | fun = index.substr(3, index.length - 3); |
-
Please register or login to post a comment