User:Emma/common.js: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
m (Replaced content with "if ( wgCanonicalSpecialPageName == 'Upload' ) { document.getElementById( 'General License' ).selected=selected; }")
mNo edit summary
Line 1: Line 1:
if ( wgCanonicalSpecialPageName == 'Upload' ) {
if ( wgCanonicalSpecialPageName == 'Upload' ) {
document.getElementById( 'General License' ).selected=selected;
document.getElementsByTagName("option")[1].removeAttribute("selected");
document.getElementsByTagName("option")[2].setAttribute("selected","selected");
}
}

Revision as of 04:21, January 10, 2013

if ( wgCanonicalSpecialPageName == 'Upload' ) {
document.getElementsByTagName("option")[1].removeAttribute("selected");
document.getElementsByTagName("option")[2].setAttribute("selected","selected");
}