5,960
edits
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-button-'+i)) { | ||
document.getElementById('drawer-'+i).addEventListener('click', function(){ drawerExpand(i); } ); | document.getElementById('drawer-button-'+i).addEventListener('click', function(){ drawerExpand(i); } ); | ||
} | } | ||
} | } |