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. */ |
− |
| |
− | //
| |
− | // Insert a personalized Texttemplate into the Special:Upload edit box.
| |
− | //
| |
− | function delayedUpdateSpecialUpload()
| |
− | {
| |
− | var editbox = document.getElementById('wpUploadDescription');
| |
− | editbox.value = "{"+"{Information\n"
| |
− | + "|Description={{de|}} {{en|}}\n"
| |
− | + "|Source={{own}}\n"
| |
− | + "|Date=\n"
| |
− | + "|Author=[\n"
| |
− | + "|Permission=See license\n"
| |
− | + "}"+"}\n\n";
| |
− | }
| |
− | function setSpecialUploadTemplate()
| |
− | {
| |
− | var uploadURL = 'http://wikivet.net/index.php/Special:Upload';
| |
− |
| |
− | // I upload mostly my own work
| |
− | document.getElementById('n-uploadbtn').firstChild.href = uploadURL;
| |
− |
| |
− | // preload input form
| |
− | if(window.location.href == uploadURL) setTimeout( "delayedUpdateSpecialUpload()", 500 );
| |
− | }
| |
− | addOnloadHook(setSpecialUploadTemplate);
| |
| | | |
| | | |
Line 1,157: |
Line 1,131: |
| | | |
| //</pre> | | //</pre> |
| + | |
| + | |
| + | |
| + | // |
| + | // Insert a personalized Texttemplate into the Special:Upload edit box. |
| + | // |
| + | function delayedUpdateSpecialUpload() |
| + | { |
| + | var editbox = document.getElementById('wpUploadDescription'); |
| + | editbox.value = "{"+"{Information\n" |
| + | + "|Description={{de|}} {{en|}}\n" |
| + | + "|Source={{own}}\n" |
| + | + "|Date=\n" |
| + | + "|Author=[\n" |
| + | + "|Permission=See license\n" |
| + | + "}"+"}\n\n"; |
| + | } |
| + | function setSpecialUploadTemplate() |
| + | { |
| + | var uploadURL = 'http://wikivet.net/index.php/Special:Upload'; |
| + | |
| + | // I upload mostly my own work |
| + | document.getElementById('n-uploadbtn').firstChild.href = uploadURL; |
| + | |
| + | // preload input form |
| + | if(window.location.href == uploadURL) setTimeout( "delayedUpdateSpecialUpload()", 500 ); |
| + | } |
| + | addOnloadHook(setSpecialUploadTemplate); |