Difference between revisions of "MediaWiki:Common.js"
From Ryzom Commons
CeNobiteElf (talk | contribs) m |
|||
Line 4: | Line 4: | ||
if(wgCanonicalSpecialPageName == "Upload" && document.getElementById('wpDestFile').value == "") { | if(wgCanonicalSpecialPageName == "Upload" && document.getElementById('wpDestFile').value == "") { | ||
uploadDesc = document.getElementById('wpUploadDescription'); | uploadDesc = document.getElementById('wpUploadDescription'); | ||
− | uploadDesc.innerHTML = "{{Information\n| | + | uploadDesc.innerHTML = "{{Information\n|description=\n|source=\n|date=\n|author=\n|permission=\n|other_versions=\n|tags=\n}}"; |
} | } | ||
} | } | ||
addOnloadHook( FillUploadForm ); | addOnloadHook( FillUploadForm ); | ||
/* </nowiki> */ | /* </nowiki> */ |
Revision as of 10:24, 10 October 2010
/* Any JavaScript here will be loaded for all users on every page load. */
/* <nowiki> */
function FillUploadForm() {
if(wgCanonicalSpecialPageName == "Upload" && document.getElementById('wpDestFile').value == "") {
uploadDesc = document.getElementById('wpUploadDescription');
uploadDesc.innerHTML = "{{Information\n|description=\n|source=\n|date=\n|author=\n|permission=\n|other_versions=\n|tags=\n}}";
}
}
addOnloadHook( FillUploadForm );
/* </nowiki> */