Migrate old MOTDs and don't replace \n with <br> after
This commit is contained in:
parent
56d6eb8026
commit
80c4c90bcf
5 changed files with 17 additions and 27 deletions
|
|
@ -175,11 +175,10 @@ Callbacks = {
|
|||
}
|
||||
},
|
||||
|
||||
setMotd: function(data) {
|
||||
CHANNEL.motd = data.html;
|
||||
CHANNEL.motd_text = data.motd;
|
||||
$("#motd").html(CHANNEL.motd);
|
||||
$("#cs-motdtext").val(CHANNEL.motd_text);
|
||||
setMotd: function(motd) {
|
||||
CHANNEL.motd = motd;
|
||||
$("#motd").html(motd);
|
||||
$("#cs-motdtext").val(motd);
|
||||
if (data.motd != "") {
|
||||
$("#motdwrap").show();
|
||||
$("#motd").show();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue