Skip to content
Snippets Groups Projects
Commit 9dc15638 authored by Jared Hancock's avatar Jared Hancock
Browse files

Fixup tab navigation with multiple tab sets

parent 530d5427
No related branches found
No related tags found
No related merge requests found
......@@ -589,9 +589,10 @@ $(document).ready(function(){
$(document).on('click.tab', 'ul.tabs li a', function(e) {
e.preventDefault();
if ($('.tab_content'+$(this).attr('href')).length) {
$('ul.tabs li a', $(this).closest('ul').parent()).removeClass('active');
var ul = $(this).closest('ul');
$('ul.tabs li a', ul.parent()).removeClass('active');
$(this).addClass('active');
$('.tab_content').hide();
$('.tab_content', ul.parent()).hide();
$('.tab_content'+$(this).attr('href')).show();
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment