autopatrol
3,554
edits
mNo edit summary |
No edit summary |
||
Line 24: | Line 24: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
// add 'style="display:inline;"' to all elements with class="patrol". | // add 'style="display:inline;"' to all elements with class="patrol". | ||
$('.patrol').attr("style", {display: "none"}) | $('.patrol').attr("style", {display: "none"}) | ||
}); | }); | ||
} | |||
}); | |||
$( function() { | |||
if ( wgUserGroups.toString().indexOf('sysop') == -1 || wgUserGroups.toString().indexOf('patroller') == -1) { | |||
$(document).ready(function() { | $(document).ready(function() { | ||
// add 'style="display: | // add 'style="display:inline;"' to all elements with class="patrol". | ||
$('.patrol').attr("style", {display: "inline"}) | $('.patrol').attr("style", {display: "inline"}) | ||
}); | }); | ||
} | |||
}); | }); |