Difference between revisions of "MediaWiki:Common.js"

From Ryzom Commons

Jump to: navigation, search
(Obsolete code to fix later)
 
(10 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 );
 
βˆ’
<!-- wgCanonicalSpecialPageName == "" &&  -->
 

Latest revision as of 13:35, 22 October 2017

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