Authored by 郭成尧

return-false

@@ -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);
@@ -23,6 +23,11 @@ @@ -23,6 +23,11 @@
23 width: 33.33%; 23 width: 33.33%;
24 text-align: center; 24 text-align: center;
25 25
  26 + span {
  27 + display: inline-block;
  28 + width: 100%;
  29 + }
  30 +
26 &.active { 31 &.active {
27 color: #434241; 32 color: #434241;
28 } 33 }