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() {
tabShow($(this).attr('title'));
})
function tabShow(tabberIndex) {
var title = $(this).attr('title');
location.hash = '#' + title;
$('.tabbertab').hide();
$('.tabberactive').removeClass('tabberactive');
$('.tabbertab[title="' + title + '"]').show();
$('.tabbernav li a[title="' + title + '"]').addClass('tabberactive');
}
});
})(jQuery);
$(document).ready(function() {