Changes

MediaWiki:Common.js

6 bytes removed, 00:10, 14 December 2024
m
no edit summary
/* Any JavaScript here will be loaded for all users on every page load. */
function tabberGoTo(thisElement, tabName, id) {
let var tabbertab = thisElement;
while (!tabbertab.classList.contains('tabbertab')) {
}
const tabberParent = tabbertab.parentElement; const tabberChildren = Array.from(tabberParent.children);
// Switch tabs
tabbertab.style.display = 'none'; tabberChildren.find(child => child.title === tabName).style.display = 'block';
// Handle tabbernav CSS
const nav = tabberChildren.find(child => child.classList.contains('tabbernav'));
for (const child of Array.from(nav.children)) {
if (child.firstElementChild.title === tabbertab.title) { child.classList = '' }
WikiDefender, bureaucrat, administrator
721
edits