Difference between revisions of "MediaWiki:Common.js"

From Ryzom Commons

Jump to: navigation, search
m
(Obsolete code to fix later)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* 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 = "<!-- [[Category:Ryzom Forge images]] -->\n\n{{Information\n|description=\n|source=\n|date=\n|author=\n|permission=\n|other_versions=\n|tags=\n}}";
 
}
 
}
 
addOnloadHook( FillUploadForm );
 
/* </nowiki> */
 

Latest revision as of 13:35, 22 October 2017

/* Any JavaScript here will be loaded for all users on every page load. */