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) {
|
rows = rows.map(function (r) {
|
||||||
if (r.rank === 10) {
|
if (r.rank === 10) {
|
||||||
r.rank = 4;
|
r.rank = 5;
|
||||||
} else if (r.rank >= 3 && r.rank < 10) {
|
} else if (r.rank >= 3 && r.rank < 10) {
|
||||||
r.rank = 3;
|
r.rank = 4;
|
||||||
}
|
}
|
||||||
return [r.name, r.rank];
|
return [r.name, r.rank];
|
||||||
});
|
});
|
||||||
|
|
|
@ -24,7 +24,7 @@ function initTables(name, owner, callback) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
rank = Math.max(rank, 4);
|
rank = Math.max(rank, 5);
|
||||||
|
|
||||||
module.exports.setRank(name, owner, rank, function (err) {
|
module.exports.setRank(name, owner, rank, function (err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
|
@ -1943,8 +1943,9 @@ function formatCSModList() {
|
||||||
var ranks = [
|
var ranks = [
|
||||||
{ name: "Remove Moderator", rank: 1 },
|
{ name: "Remove Moderator", rank: 1 },
|
||||||
{ name: "Moderator", rank: 2 },
|
{ name: "Moderator", rank: 2 },
|
||||||
{ name: "Channel Admin", rank: 3 },
|
{ name: "Admin", rank: 3 },
|
||||||
{ name: "Channel Owner", rank: 4 }
|
{ name: "Owner", rank: 4 },
|
||||||
|
{ name: "Founder", rank: 5 }
|
||||||
];
|
];
|
||||||
|
|
||||||
ranks.forEach(function (r) {
|
ranks.forEach(function (r) {
|
||||||
|
@ -1962,7 +1963,7 @@ function formatCSModList() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
$("<span/>").addClass("glyphicon glyphicon-ok pull-right")
|
$("<span/>").addClass("glyphicon glyphicon-ok")
|
||||||
.appendTo(a);
|
.appendTo(a);
|
||||||
li.addClass("disabled");
|
li.addClass("disabled");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue