Difference between revisions of "MediaWiki:Common.js"

From Ryzom Commons

Jump to: navigation, search
(Obsolete code to fix later)
 
(8 intermediate revisions by 2 users 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. */
function FillUploadForm() {
 
if(document.getElementById('wpDestFile').value == "") {
 
uploadDesc = document.getElementById('wpUploadDescription');
 
uploadDesc.innerHTML = wgCanonicalSpecialPageName + "{{Information\n|Description=\n|Source=\n|Date=\n|Author=\n|Permission=\n|other_versions=\n}}";
 
}
 
}
 
addOnloadHook( FillUploadForm );
 

Latest revision as of 13:35, 22 October 2017

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