From 99e7a521efeeda303d1407c339bff481934f98b2 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Wed, 26 Feb 2014 14:37:51 -0600 Subject: [PATCH] Tweaks --- import.js | 4 ++-- lib/database/channels.js | 2 +- www/js/util.js | 7 ++++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/import.js b/import.js index f7842c64..7bbf5b3a 100644 --- a/import.js +++ b/import.js @@ -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]; }); diff --git a/lib/database/channels.js b/lib/database/channels.js index f8498f0b..98868e7e 100644 --- a/lib/database/channels.js +++ b/lib/database/channels.js @@ -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) { diff --git a/www/js/util.js b/www/js/util.js index 8fa416c8..8b5721d7 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -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 { - $("").addClass("glyphicon glyphicon-ok pull-right") + $("").addClass("glyphicon glyphicon-ok") .appendTo(a); li.addClass("disabled"); }