Difference between revisions of "CirTap/monobook.js"
From Joomla! Documentation
< User:CirTap
m |
m |
||
Line 12: | Line 12: | ||
myEditA.innerHTML = '0'; | myEditA.innerHTML = '0'; | ||
myEditA.title = 'Edit lead section'; | myEditA.title = 'Edit lead section'; | ||
− | + | myEditA.accesskey = null; | |
myActs.insertBefore(myEditLead, myEdit) | myActs.insertBefore(myEditLead, myEdit) | ||
Revision as of 11:14, 6 May 2008
// try+replace with: addPortletLink(portlet-id, href, text, id, tooltip, accesskey, nextnode)
if (window.wgIsArticle) { addOnloadHook( function () {
// add tab BEFORE "Edit" tab
var myActs = document.getElementById('p-cactions').getElementsByTagName('UL')[0];
var myEdit = document.getElementById('ca-edit');
var myEditLead = myEdit.cloneNode(true);
var myEditA = myEditLead.getElementsByTagName('A')[0];
/* add "Edit Lead Section" tab */
myEditLead.id = 'ca-editlead';
myEditA.href += '§ion=0';
myEditA.innerHTML = '0';
myEditA.title = 'Edit lead section';
myEditA.accesskey = null;
myActs.insertBefore(myEditLead, myEdit)
// add Purge tab
addPortletLink('p-cactions', window.wgServer+window.wgScript+'?title='+window.wgPageName+'&action=purge', 'Purge', 'ca-purge', 'Purge page cache', null, 'SMACK');
});} // if
// e.o.f. User:CirTap/monobook.js