Fix tabShow function

This commit is contained in:
Noah Manneschmidt 2015-04-29 13:56:12 -05:00
parent 4b6fa00d82
commit f2701a7029

View file

@ -38,16 +38,13 @@
}; };
$('.tabbernav li a').click(function() { $('.tabbernav li a').click(function() {
tabShow($(this).attr('title')); var title = $(this).attr('title');
})
function tabShow(tabberIndex) {
location.hash = '#' + title; location.hash = '#' + title;
$('.tabbertab').hide(); $('.tabbertab').hide();
$('.tabberactive').removeClass('tabberactive'); $('.tabberactive').removeClass('tabberactive');
$('.tabbertab[title="' + title + '"]').show(); $('.tabbertab[title="' + title + '"]').show();
$('.tabbernav li a[title="' + title + '"]').addClass('tabberactive'); $('.tabbernav li a[title="' + title + '"]').addClass('tabberactive');
} });
})(jQuery); })(jQuery);
$(document).ready(function() { $(document).ready(function() {