MediaWiki:Common.js

From Ryzom Commons

Revision as of 02:32, 30 May 2010 by SirCotare (talk | contribs)
Jump to: navigation, search
/* 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 );