MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 117: Line 117:
/* ======================================= Template:Drawer ======================================= */
/* ======================================= Template:Drawer ======================================= */
for (i = 1; i < 100; i++) {
for (i = 1; i < 100; i++) {
if (document.getElementById('drawer'+i)) {
if (document.getElementById('drawer-'+i)) {
document.getElementById('drawer'+i).addEventListener('click', function(){ drawerExpand(i); } );
document.getElementById('drawer-'+i).addEventListener('click', function(){ drawerExpand(i); } );
}
}
}
}