Difference between revisions of "MediaWiki:Common.js"

From Ryzom Commons

Jump to: navigation, search
m
(Obsolete code to fix later)
 
(11 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(wgNamespaceNumber == 6 && document.getElementById('wpDestFile').value == "") {
 
โˆ’
uploadDesc = document.getElementById('wpUploadDescription');
 
โˆ’
uploadDesc.innerHTML = "{{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. */