Difference between revisions of "MediaWiki:Common.js"

i think it's because of that
(i have no idea)
(i think it's because of that)
Line 116: Line 116:
   
   
const CD05 = document.getElementById("mw-customcollapsible-2005CD");
const CD05 = document.getElementById("mw-customcollapsible-2005CD");
if (CD05.hasAttribute("collapsed")) {
if (CD05.hasAttribute("mw-collapsed")) {
var div = document.querySelector(".mw-customtoggle-2005CD");
var div = document.querySelector(".mw-customtoggle-2005CD");
div.id = "2005CD-clicked";
div.id = "2005CD-clicked";
}
}