Authored by 郭成尧

return-false

... ... @@ -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);
... ...
... ... @@ -23,6 +23,11 @@
width: 33.33%;
text-align: center;
span {
display: inline-block;
width: 100%;
}
&.active {
color: #434241;
}
... ...