User:Emma/common.js: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
no edit summary
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"})
});
});
  }
}
if ( wgUserGroups.toString().indexOf('sysop') == -1 || wgUserGroups.toString().indexOf('patroller') == -1) {
});
 
$( function() {
  if ( wgUserGroups.toString().indexOf('sysop') == -1 || wgUserGroups.toString().indexOf('patroller') == -1) {
$(document).ready(function() {
$(document).ready(function() {
   // add 'style="display:none;"' to all elements with class="patrol".
   // add 'style="display:inline;"' to all elements with class="patrol".
   $('.patrol').attr("style", {display: "inline"})  
   $('.patrol').attr("style", {display: "inline"})
});
});
  }
}
});
});
autopatrol
3,554

edits

Navigation menu