Implement #163
This commit is contained in:
parent
33744da634
commit
a1862496a9
4 changed files with 17 additions and 5 deletions
|
|
@ -204,6 +204,7 @@ Callbacks = {
|
|||
$("#opt_customjs").val(opts.customjs);
|
||||
$("#opt_chat_antiflood").prop("checked", opts.chat_antiflood);
|
||||
$("#opt_show_public").prop("checked", opts.show_public);
|
||||
$("#opt_enable_link_regex").prop("checked", opts.enable_link_regex);
|
||||
$("#customCss").remove();
|
||||
if(opts.customcss.trim() != "") {
|
||||
$("<link/>")
|
||||
|
|
|
|||
|
|
@ -366,7 +366,8 @@ $("#opt_submit").click(function() {
|
|||
customcss: css,
|
||||
customjs: $("#opt_customjs").val(),
|
||||
chat_antiflood: $("#opt_chat_antiflood").prop("checked"),
|
||||
show_public: $("#opt_show_public").prop("checked")
|
||||
show_public: $("#opt_show_public").prop("checked"),
|
||||
enable_link_regex: $("#opt_enable_link_regex").prop("checked")
|
||||
};
|
||||
socket.emit("channelOpts", opts);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -209,6 +209,11 @@
|
|||
<input type="checkbox" id="opt_show_public">
|
||||
Show channel publicly
|
||||
</label>
|
||||
<br>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" id="opt_enable_link_regex">
|
||||
Convert URLs to links in chat messages
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="span10">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue