MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
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. */ | ||
$( function () { | $( function () { | ||
if ( $( '#ca-purge' ).length || !mw.config.get( 'wgIsArticle' ) ) return; | if ( $( '#ca-purge' ).length || !mw.config.get( 'wgIsArticle' ) ) return; | ||
Line 13: | Line 10: | ||
'*' | '*' | ||
); | ); | ||
}); | }); |
Latest revision as of 09:33, 23 November 2024
/* Any JavaScript here will be loaded for all users on every page load. */
$( function () {
if ( $( '#ca-purge' ).length || !mw.config.get( 'wgIsArticle' ) ) return;
mw.util.addPortletLink(
'p-cactions',
mw.util.getUrl( null, { action: 'purge' } ),
"Purge",
'ca-purge',
'Purge the server cache of this page',
'*'
);
});