mirror of https://github.com/calzoneman/sync.git
Tweaks
This commit is contained in:
parent
4e2c6d486b
commit
99e7a521ef
|
@ -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];
|
||||
});
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue