This commit is contained in:
Calvin Montgomery 2014-02-26 14:37:51 -06:00
parent 4e2c6d486b
commit 99e7a521ef
3 changed files with 7 additions and 6 deletions

View File

@ -199,9 +199,9 @@ function copyChannelTables(name, cb) {
rows = rows.map(function (r) {
if (r.rank === 10) {
r.rank = 4;
r.rank = 5;
} else if (r.rank >= 3 && r.rank < 10) {
r.rank = 3;
r.rank = 4;
}
return [r.name, r.rank];
});

View File

@ -24,7 +24,7 @@ function initTables(name, owner, callback) {
return;
}
rank = Math.max(rank, 4);
rank = Math.max(rank, 5);
module.exports.setRank(name, owner, rank, function (err) {
if (err) {

View File

@ -1943,8 +1943,9 @@ function formatCSModList() {
var ranks = [
{ name: "Remove Moderator", rank: 1 },
{ name: "Moderator", rank: 2 },
{ name: "Channel Admin", rank: 3 },
{ name: "Channel Owner", rank: 4 }
{ name: "Admin", rank: 3 },
{ name: "Owner", rank: 4 },
{ name: "Founder", rank: 5 }
];
ranks.forEach(function (r) {
@ -1962,7 +1963,7 @@ function formatCSModList() {
});
});
} else {
$("<span/>").addClass("glyphicon glyphicon-ok pull-right")
$("<span/>").addClass("glyphicon glyphicon-ok")
.appendTo(a);
li.addClass("disabled");
}