Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
codersaiful committed Nov 30, 2023
1 parent 28f18ed commit a4154a2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion assets/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1071,16 +1071,22 @@ jQuery.fn.extend({

});
if(tabSerial > 1){
tabHtml += "<a href='#show-all' class='tab-button wpt-button'>Show All</a>";
tabArea.html(tabHtml);
}

$(document.body).on('click','.wpt-configure-tab-wrapper a.tab-button',function(e){
e.preventDefault();
$('.wpt-configure-tab-wrapper a').removeClass('active');
$(this).addClass('active');
$(mainSelector + ' div.wpt-section-panel.active').hide();
let target = $(this).attr('href');
if(target == '#show-all'){
sectionPanel.fadeIn();
return;
}
$(mainSelector + ' ' + target).fadeIn().addClass('active');
$(this).addClass('active');

});
}

Expand Down

0 comments on commit a4154a2

Please sign in to comment.