From Fedora Project Wiki
(bluh) |
(blah) |
||
Line 12: | Line 12: | ||
addOnloadHook(function () { | addOnloadHook(function () { | ||
alert(wgPageName); | alert(wgPageName); | ||
addPortletLink('p-cactions', "hellllooooooooo", 'archive', 'ca-archive', 'Move page to archive', '1'); | |||
}); | }); |
Revision as of 16:12, 14 June 2009
// add purge button addOnloadHook(function () { var hist; var url; if (!(hist = document.getElementById('ca-history') )) return; if (!(url = hist.getElementsByTagName('a')[0] )) return; if (!(url = url.href )) return; addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'), 'purge', 'ca-purge', 'Purge server cache for this page', '0'); }); // add archive button addOnloadHook(function () { alert(wgPageName); addPortletLink('p-cactions', "hellllooooooooo", 'archive', 'ca-archive', 'Move page to archive', '1'); });