Content deleted Content added
Mike Dillon (talk | contribs) link to required js |
Mike Dillon (talk | contribs) use addPortletLink; combine onload hook for adding purge and last tabs |
||
Line 21:
// Add a new list item to the page tabs
function addTab(url, name, id, title, key) {
// Add tab to the top tabs
// Add tab to the bottom if the tabs have been cloned
▲ addlilink(bottomTabs, url, name, 'mytabs-' + id, title, key);
}
// Add a 'purge'
addTab(x.replace(/=history/, "=purge"), 'purge', 'ca-purge',▼
'Purge the internal cache for this page', 'g');▼
addOnloadHook(function () {
var x = document.getElementById('ca-history');
Line 52 ⟶ 36:
else x = x.childNodes[0].href;
▲ 'purge', 'ca-purge', 'Purge the internal cache for this page', 'g');
addTab(x.replace(/action=history/, "diff=cur&oldid=prev"),
'last', 'ca-last', 'Show most recent diff');
|