Add homepage channel list
This commit is contained in:
parent
5b7eed3541
commit
41de5c5d7a
7 changed files with 73 additions and 245 deletions
|
|
@ -77,6 +77,7 @@ function initCallbacks() {
|
|||
$("#opt_customcss").val(opts.customcss);
|
||||
$("#opt_customjs").val(opts.customjs);
|
||||
$("#opt_chat_antiflood").prop("checked", opts.chat_antiflood);
|
||||
$("#opt_show_public").prop("checked", opts.show_public);
|
||||
$("#customCss").remove();
|
||||
if(opts.customcss.trim() != "") {
|
||||
$("<link/>").attr("rel", "stylesheet")
|
||||
|
|
|
|||
|
|
@ -376,7 +376,8 @@ $("#opt_submit").click(function() {
|
|||
pagetitle: ptitle,
|
||||
customcss: css,
|
||||
customjs: $("#opt_customjs").val(),
|
||||
chat_antiflood: $("#opt_chat_antiflood").prop("checked")
|
||||
chat_antiflood: $("#opt_chat_antiflood").prop("checked"),
|
||||
show_public: $("#opt_show_public").prop("checked")
|
||||
};
|
||||
socket.emit("channelOpts", opts);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -827,6 +827,7 @@ function handleRankChange() {
|
|||
$("#opt_pagetitle").attr("disabled", val);
|
||||
$("#opt_customcss").attr("disabled", val);
|
||||
$("#opt_customjs").attr("disabled", val);
|
||||
$("#opt_show_public").attr("disabled", val);
|
||||
$("#show_filtereditor").attr("disabled", val);
|
||||
$("#show_acl").attr("disabled", val);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue