MediaWiki:Vector.js: Difference between revisions
Jump to navigation
Jump to search
Created page with "mw.loader.using(['mediawiki.util', 'jquery'], function () { $(function () { var $toolsList = $('#p-tb .vector-menu-content-list'); if ($toolsList.length) { $toolsList.empty().append( '<li id="t-upload"><a href="/Special:Upload">Upload Your Own File</a></li>' + '<li id="t-special"><a href="/Special:SpecialPages">All Special Pages</a></li>' + '<li id="t-links"><a href="/Special:WhatLinksHere/Ma..." |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
if ($toolsList.length) { | if ($toolsList.length) { | ||
$toolsList.empty().append( | $toolsList.empty().append( | ||
'<li id="t-upload"><a href="/Special:Upload">Upload | '<li id="t-upload"><a href="/index.php/Special:Upload">Upload File</a></li>' | ||
); | ); | ||
} | } | ||
}); | }); | ||
}); | }); |