17,230
edits
m (update deprecated wg variables to mw.config) |
(load mediawiki.util) |
||
Line 5: | Line 5: | ||
$( function() { | $( function() { | ||
if ( !$( '#ca-purge' ).length && mw.config.get( 'wgIsArticle' ) ) { | if ( !$( '#ca-purge' ).length && mw.config.get( 'wgIsArticle' ) ) { | ||
mw.loader.using(['mediawiki.util']).then(function() { | |||
mw.util.addPortletLink( | mw.util.addPortletLink( | ||
'p-cactions', | 'p-cactions', | ||
Line 13: | Line 14: | ||
'*' | '*' | ||
); | ); | ||
}); | |||
} | } | ||
}); | }); | ||
// | // |