Changes

Jump to: navigation, search

MediaWiki:Common.js

5 bytes added, 00:14, 14 December 2024
Replacing for of loop with for each...
// Handle tabbernav CSS
const nav = tabberChildren.find(function (child) { return child.classList.contains('tabbernav') })
for (const child of Array.from(nav.children).forEach(function (child) {
if (child.firstElementChild.title === tabbertab.title) { child.classList = '' }
if (child.firstElementChild.title === tabName) { child.classList = 'tabberactive' }
})
document.getElementById(id).scrollIntoView({ behavior: "smooth", block: "start" })
WikiDefender, bureaucrat, administrator
721
edits

Navigation menu