Hide channel settings button in chatonly for non mods

This commit is contained in:
Calvin Montgomery 2014-02-28 13:55:29 -06:00
parent 6e1de10860
commit c93bc97a94
1 changed files with 2 additions and 0 deletions

View File

@ -1502,11 +1502,13 @@ function chatOnly() {
.appendTo($("#chatheader"))
.click(showUserOptions);
$("<span/>").addClass("label label-default pull-right pointer")
.attr("id", "showchansettings")
.text("Channel Settings")
.appendTo($("#chatheader"))
.click(function () {
$("#channeloptions").modal();
});
setVisible("#showchansettings", CLIENT.rank >= 2);
$("body").addClass("chatOnly");
resizeStuff();
}