User:FlyingRagnar/vector.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 8: Line 8:
jQuery( document ).ready( function( $ ) {
jQuery( document ).ready( function( $ ) {
   
   
   //$( "#tabs" ).tabs();
   $( "#tabs" ).tabs();
    
    
    if ( !$( '#ca-purge' ).length && mw.config.get( 'wgIsArticle' ) ) {
        mw.util.addPortletLink(
            'p-cactions',
            mw.util.wikiScript() + '?' + $.param({ title: mw.config.get( 'wgPageName' ), action: 'purge' }),
            mw.config.get( 'skin' ) == 'vector' ? 'Purge' : '*',
            'ca-purge',
            'Purge the server cache of this page',
            '*'
        );
    }
   
} );
} );