Difference between revisions of "MediaWiki:Common.js"

replaced CD05_div by Object
(maybe)
(replaced CD05_div by Object)
Line 117: Line 117:
const CD05 = document.getElementById("mw-customcollapsible-2005CD");
const CD05 = document.getElementById("mw-customcollapsible-2005CD");
if (CD05.hasAttribute("mw-collapsed")) {
if (CD05.hasAttribute("mw-collapsed")) {
var CD05_div = getElementById('2005CD')
var Object = getElementById('2005CD');
CD05_div.setAttribute("2005CD", "2005CD-clicked");
Object.setAttribute("2005CD", "2005CD-clicked");
}
}