Work on user ranks

This commit is contained in:
calzoneman 2014-01-08 23:45:26 -06:00
parent 9306200a87
commit 2fadd70297
5 changed files with 63 additions and 11 deletions

View file

@ -490,3 +490,22 @@ if (location.protocol === "https:") {
makeAlert(title, text, "alert-warning")
.appendTo($("#announcements"));
}
/* channel ranks stuff */
$("#cs-chanranks-mod").click(function () {
var name = $("#cs-chanranks-name").val();
var rank = 2;
socket.emit("setChannelRank", {
user: name,
rank: rank
});
});
$("#cs-chanranks-adm").click(function () {
var name = $("#cs-chanranks-name").val();
var rank = 3;
socket.emit("setChannelRank", {
user: name,
rank: rank
});
});