From Fedora Project Wiki
(New page: addOnloadHook(function () { var hist; var url; if (!(hist = document.getElementById('ca-history') )) return; if (!(url = hist.getElementsByTagName('a')[0] )) return; if (!(...) |
(ajfdslskjflkjflajfs) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
// add purge button | |||
addOnloadHook(function () { | addOnloadHook(function () { | ||
var hist; var url; | var hist; var url; |
Latest revision as of 16:13, 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'); });