mirror of https://github.com/calzoneman/sync.git
Hide channel settings button in chatonly for non mods
This commit is contained in:
parent
6e1de10860
commit
c93bc97a94
|
@ -1502,11 +1502,13 @@ function chatOnly() {
|
||||||
.appendTo($("#chatheader"))
|
.appendTo($("#chatheader"))
|
||||||
.click(showUserOptions);
|
.click(showUserOptions);
|
||||||
$("<span/>").addClass("label label-default pull-right pointer")
|
$("<span/>").addClass("label label-default pull-right pointer")
|
||||||
|
.attr("id", "showchansettings")
|
||||||
.text("Channel Settings")
|
.text("Channel Settings")
|
||||||
.appendTo($("#chatheader"))
|
.appendTo($("#chatheader"))
|
||||||
.click(function () {
|
.click(function () {
|
||||||
$("#channeloptions").modal();
|
$("#channeloptions").modal();
|
||||||
});
|
});
|
||||||
|
setVisible("#showchansettings", CLIENT.rank >= 2);
|
||||||
$("body").addClass("chatOnly");
|
$("body").addClass("chatOnly");
|
||||||
resizeStuff();
|
resizeStuff();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue