User talk:Rillke/AjaxUpload.js
Jump to navigation
Jump to search
Install
[edit]To add a link to your toolbox copy-paste the following code to your common.js:
var UpByUrlLink = mw.util.addPortletLink( 'p-tb', '#', 'Upload file by URL');
$( UpByUrlLink ).click( function ( e ) {
e.preventDefault();
importScript('User:Rillke/AjaxUpload.js');
});
This will add an "Upload file by URL" link to your wiki toolbox on the left side of this page.