User:MarkS/extraeditbuttons.js: Difference between revisions

Content deleted Content added
MarkS (talk | contribs)
m Copy of dev code - see XEB page for more info
MarkS (talk | contribs)
Replace with dev code - option to turn off popups added
Line 17:
'&action=raw&ctype=text/css&dontcountme=s">');
 
if(typeof XEBPopups== 'undefined')XEBPopups=true;
 
if(typeof XEBHideDelay== 'undefined')XEBHideDelay=0.5; //Time before the popup disappears after the mouse moves out
if(typeof XEBExtendEditSummary == 'undefined')XEBExtendEditSummary=true; // Is the edit summary extended after a popup
Line 102 ⟶ 101:
if(!wgIsArticle)// only if edit
{
 
if(XEBPopups)hookEvent("load", extendButtons);
}
 
Line 204:
// Adds extended onclick-function to some buttons
function extendButtons(){
 
if(!(allEditButtons = document.getElementById('toolbar'))) return false;
if(typeof editform != 'undefined')