From b60981c8d874a4c953ce1c551f1123b4257a59be Mon Sep 17 00:00:00 2001 From: calzoneman Date: Tue, 18 Jun 2013 15:59:45 -0400 Subject: [PATCH] Ability to add chat filters --- www/assets/js/callbacks.js | 6 ++-- www/assets/js/channelsettings.js | 27 +++++++++++++++++ www/channeloptions.html | 50 +++++++++++++++++++++++++++++++- 3 files changed, 78 insertions(+), 5 deletions(-) diff --git a/www/assets/js/callbacks.js b/www/assets/js/callbacks.js index f624966a..14764a80 100644 --- a/www/assets/js/callbacks.js +++ b/www/assets/js/callbacks.js @@ -114,12 +114,10 @@ Callbacks = { }, 100); return; } - if(tbl.children().length > 1) { - $(tbl.children()[1]).remove(); - } + tbl.find(".filter-row").remove(); for(var i = 0; i < entries.length; i++) { var f = entries[i]; - var tr = $("").appendTo(tbl); + var tr = $("").appendTo(tbl).addClass("filter-row"); var remove = $(" + + +

Max 20KB. If you need more space, host the file externally and use the External CSS option