User:MacFan4000/grantAdmin.js: Difference between revisions
From Test Wiki
Content deleted Content added
Minor script fixes |
IsabellaFan2 (talk | contribs) m Reverted edits by Joepayne (talk) to last revision by MacFan4000 |
||
| Line 54: | Line 54: | ||
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 give " + username + " administrator |
check = confirm("Do you want to give " + username + " administrator privleges on this wiki?"); |
||
if (check) { |
if (check) { |
||
grantAdmin(username); |
grantAdmin(username); |
||