Ability to unregister channel

This commit is contained in:
calzoneman 2013-06-20 14:54:15 -04:00
parent 57faa03b7c
commit 77800a6587
3 changed files with 28 additions and 14 deletions

View file

@ -54,11 +54,17 @@
externaljs: $("#opt_externaljs").val(),
chat_antiflood: $("#opt_chat_antiflood").prop("checked"),
show_public: $("#opt_show_public").prop("checked"),
/* TODO Deprecate this in favour of per-filter toggle */
enable_link_regex: $("#opt_enable_link_regex").prop("checked")
});
});
$("#chanopts_unregister").click(function() {
var res = confirm("You are about to unregister your channel. This will PERMANENTLY delete your channel data, including ranks, bans, and library videos. This cannot be undone. Are you sure you want to continue?");
if(res) {
socket.emit("unregisterChannel");
}
});
$("#save_motd").click(function() {
socket.emit("setMotd", {
motd: $("#motdtext").val()