User:Joepayne/stripRights.js: Difference between revisions

From Test Wiki
no edit summary
(Test)
No edit summary
Line 52: Line 52:
).done( function ( data ) {
).done( function ( data ) {
     try {
     try {
     if(data.query.users[0].groups.indexOf(!'sysop') >= 0) {/* Do nothing */}
     if(data.query.users[0].groups.indexOf('!sysop') >= 0) {/* Do nothing */}
     else {
     else {
     check = confirm("Do you want to remove " + username + "'s rights on this wiki?");
     check = confirm("Do you want to remove " + username + "'s rights on this wiki?");
126

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.