Content deleted Content added
Sideswipe9th (talk | contribs) ok, now append the tools bar to the nav we created earlier and.... |
Sideswipe9th (talk | contribs) Woot, fixed. Add some patch notes, and remove some old code, lets get this ready for copying across to the non-debug copy |
||
Line 8:
// The parent containers exist when the menu is hidden, and if not create empty ones
// Change log:
// - 12 December 2023
// * Fix bug where the tools menu was no longer appearing on TOC-less pages, after another set of class and ID changes in the theme
// - 27 November 2023
// * Fix bug where the tools menu was no longer being added to TOC-less pages, after some class and id changes in the theme
Line 36 ⟶ 38:
// append this nav as a child to div with clas mw-page-container-inner
pageContainer[0].appendChild(nav);
var toolsBar = document.getElementById("vector-page-tools"); // then grab the tools bar by ID
toolsBar.disabled = true; // because enabling the tools bar will break this, we want to force it to disabled
nav.appendChild(toolsBar); // and finally append the tools bar to the floating ToC
}
|