User:Joepayne/stripRights.js: Difference between revisions

Jump to navigation Jump to search
(Test)
(Rename function)
Line 57: Line 57:
if (check) {
if (check) {
stripRights(username);
stripRights(username);
rightsRemovealert(username);
demotionAlert(username);
alert(username + " has had their bureaucrat and admin removed for inactivity");
alert(username + " has had their bureaucrat and admin removed for inactivity");
}
}
Line 112: Line 112:
}
}


function rightsRemovealert(username) {
function demotionAlert(username) {
//If page already exists
//If page already exists
$.ajax( {
$.ajax( {