Add homepage channel list

This commit is contained in:
calzoneman 2013-05-01 17:49:34 -05:00
parent 5b7eed3541
commit 41de5c5d7a
7 changed files with 73 additions and 245 deletions

View file

@ -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")

View file

@ -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);
});

View file

@ -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);
}