...
|
...
|
@@ -38,7 +38,7 @@ Tab.prototype.show = function() { |
|
|
|
|
|
let $target = $(targetSelector);
|
|
|
|
|
|
if ($nav.hasClass('active')) {
|
|
|
if ($nav.hasClass('active') || $nav.parent().hasClass('active')) {
|
|
|
return;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -78,6 +78,10 @@ $(document).on('click', '[data-trigger=tab]', function(event) { |
|
|
let $nav = $(event.target);
|
|
|
let fun = '';
|
|
|
|
|
|
if ($nav.hasClass('active') || $nav.parent().hasClass('active')) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
$.each($nav.data(), function(index) {
|
|
|
if (index.substr(0, 3) === 'fun') {
|
|
|
fun = index.substr(3, index.length - 3);
|
...
|
...
|
|