17,097
edits
m (Revert previous change) Tags: Manual revert Mobile edit Mobile web edit Advanced mobile edit |
(Add Purge link to page tools) |
||
Line 772: | Line 772: | ||
return true; | return true; | ||
} | } | ||
} | |||
function addToPageTools() { | |||
if (isUserLoggedIn()) { | |||
$.when(mw.loader.using(['mediawiki.util']), $.ready).then( function() { | |||
mw.util.addPortletLink( | |||
'p-cactions', | |||
mw.util.getUrl() + '?action=purge', | |||
'Purge', | |||
't-purgecache', | |||
'Purge the cache for this page', | |||
null, | |||
null | |||
); | |||
}); | |||
} | |||
} | } | ||
Line 803: | Line 819: | ||
// Show Android App download link | // Show Android App download link | ||
showAndroidAppDownloadLink(); | showAndroidAppDownloadLink(); | ||
// Add links to Page Tools navigation | |||
addToPageTools(); | |||
}); | }); |