Add a small toggle for the MOTD

This commit is contained in:
calzoneman 2013-10-02 22:26:28 -05:00
parent abc9c398f4
commit 75ea06ed76
4 changed files with 29 additions and 4 deletions

View file

@ -173,10 +173,15 @@ Callbacks = {
CHANNEL.motd_text = data.motd;
$("#motd").html(data.html);
$("#motdtext").val(CHANNEL.motd_text);
if(data.motd != "")
if(data.motd != "") {
$("#motdwrap").show();
$("#motd").show();
$("#togglemotd").find(".icon-plus")
.removeClass("icon-plus")
.addClass("icon-minus");
}
else
$("#motd").hide();
$("#motdwrap").hide();
},
chatFilters: function(entries) {