mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-09-23 18:31:10 +00:00
Fix tabShow function
This commit is contained in:
parent
4b6fa00d82
commit
f2701a7029
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue