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() {
|
$('.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() {
|
||||||
|
|
Loading…
Reference in a new issue