User:Emma/common.js: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
$(function() | $(function() {if ( wgCanonicalSpecialPageName == 'Upload' ) { | ||
document.getElementById( 'wpLicense' ).childNodes[0].selected | document.getElementById( 'wpLicense' ).childNodes[0].removeAttribute("selected"); | ||
document.getElementById( 'wpLicense' ).childNodes[1].selected | document.getElementById( 'wpLicense' ).childNodes[1].setAttribute("selected","selected"); | ||
} | |||
}); | }); |
Revision as of 11:50, January 10, 2013
$(function() {if ( wgCanonicalSpecialPageName == 'Upload' ) { document.getElementById( 'wpLicense' ).childNodes[0].removeAttribute("selected"); document.getElementById( 'wpLicense' ).childNodes[1].setAttribute("selected","selected"); } });