MediaWiki:Gadget-PatrolTab.js: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
(Created page.) |
mNo edit summary |
||
Line 4: | Line 4: | ||
if (document.URL.indexOf('&rcid=') > 0 && wgAction != 'markpatrolled') | if (document.URL.indexOf('&rcid=') > 0 && wgAction != 'markpatrolled') | ||
{ | { | ||
addPortletLink ('p-cactions', 'javascript:(function(){ jQuery(".patrollink a").click(); })()', ' | addPortletLink ('p-cactions', 'javascript:(function(){ jQuery(".patrollink a").click(); })()', 'Patrol', 'ca-patrol', 'Mark as patrolled', '1'); | ||
} | } | ||
} | } |
Revision as of 08:40, October 24, 2011
$( function() { if ( wgUserGroups.toString().indexOf('sysop') != -1 || wgUserGroups.toString().indexOf('patroller') != -1) { function patroltab() { if (document.URL.indexOf('&rcid=') > 0 && wgAction != 'markpatrolled') { addPortletLink ('p-cactions', 'javascript:(function(){ jQuery(".patrollink a").click(); })()', 'Patrol', 'ca-patrol', 'Mark as patrolled', '1'); } } addOnloadHook(patroltab); } });