Difference between revisions of "MediaWiki:Common.js"

From Ryzom Commons

Jump to: navigation, search
(Obsolete code to fix later)
 
(9 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
 
โˆ’
|Description=
 
โˆ’
|Source=
 
โˆ’
|Date=
 
โˆ’
|Author=
 
โˆ’
|Permission=
 
โˆ’
|other_versions=
 
โˆ’
}}";
 
โˆ’
}
 
โˆ’
}
 
โˆ’
addOnloadHook( FillUploadForm );
 

Latest revision as of 13:35, 22 October 2017

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