Difference between revisions of "MediaWiki:Common.js"

From Ryzom Commons

Jump to: navigation, search
m
(Obsolete code to fix later)
 
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") {
 
uploadDesc = document.getElementById('wpUploadDescription');
 
uploadDesc.rows = 14;
 
uploadDesc.cols = 90;
 
if(document.getElementById('wpDestFile').value == "") {
 
uploadDesc.innerHTML = "<!-- Please categorize your uploads! -->\n<!-- An example is right below; just uncomment it to get started! -->\n<!-- [[Category:Ryzom Forge images]] -->\n\n{{Information\n|description=\n|source=\n|date=\n|author=\n|permission=\n}}";
 
}
 
}
 
}
 
addOnloadHook( FillUploadForm );
 
/* </nowiki> */
 

Latest revision as of 14:35, 22 October 2017

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