MediaWiki:Gadget-PatrolTab.js: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
if ( wgUserGroups.toString().indexOf('sysop') != -1 || wgUserGroups.toString().indexOf('patroller') != -1) { | if ( wgUserGroups.toString().indexOf('sysop') != -1 || wgUserGroups.toString().indexOf('patroller') != -1) { | ||
function patroltab() { | function patroltab() { | ||
var $patrollinks = $('.patrollink a'); | |||
if ( $patrollinks.length > 0 ) | |||
{ | { | ||
addPortletLink ('p-cactions', 'javascript:(function(){ jQuery(".patrollink a").click(); })()', 'Patrol', 'ca-patrol', 'Mark as patrolled', '1'); | addPortletLink ('p-cactions', 'javascript:(function(){ jQuery(".patrollink a").click(); })()', 'Patrol', 'ca-patrol', 'Mark as patrolled', '1'); |