*
* Auteur : ??
* Dernière révision : 236 mars 2012 * {{Projet:JavaScript/09/2011Script|OngletPurge}}
*/
$j(document).ready(function() { if(mw.config.get('wgNamespaceNumber') >= 0 && ) { $(mwdocument ).config.getready('wgAction') === 'view' || mw.config.getfunction('wgAction') === 'purge')) { mw.util.addPortletLink( 'p-cactions', mw.configutil.getgetUrl(null, { action: 'wgScript') + '?action=purge&title=' + mw.util.wikiUrlencode(mw.config.get('wgPageName')} ), 'Purger', 'ca-purge', 'Purger le cache de la page' ); if(mw.config.get('wgNamespaceNumber') == 104) { $('li#ca-purge a').click(function() { var img = new Image(); img.src = $('img#ProofReadImage').attr('scr') + '?action=purge'; alert($('img#ProofReadImage').attr('scr')); //location.href = mw.config.get('wgScript') + '?action=purge&title=' + mw.util.wikiUrlencode(mw.config.get('wgPageName')); }); } if(mw.config.get(wgAction) === 'purge') { $('#ca-purge').addClass('selected'); } }});