MediaWiki:Vector-2022.js: Difference between revisions
mNo edit summary |
mNo edit summary Tag: Reverted |
||
| Line 3: | Line 3: | ||
var titlebar = document.querySelector('.vector-page-titlebar'); | var titlebar = document.querySelector('.vector-page-titlebar'); | ||
if (indicators && titlebar) { | if (indicators && titlebar) { | ||
// Add class to hide the indicators while moving | |||
indicators.classList.add('hidden'); | |||
// Move the indicators | |||
titlebar.appendChild(indicators); | titlebar.appendChild(indicators); | ||
// Remove the hidden class after moving | |||
indicators.classList.remove('hidden'); | |||
} | } | ||
}); | }); | ||