Redo channel logs

This commit is contained in:
calzoneman 2014-02-08 12:45:07 -06:00
parent 87b40b679a
commit 3bebc34e21
9 changed files with 140 additions and 152 deletions

View file

@ -364,18 +364,16 @@ Callbacks = {
},
readChanLog: function (data) {
var log = $("#chanlog_contents");
if(log.length == 0)
var log = $("#cs-chanlog-text");
if (log.length == 0)
return;
if(data.success) {
log.data("log", data.data);
log.text(data.data);
if (data.success) {
setupChanlogFilter(data.data);
filterChannelLog();
} else {
log.text("Error reading channel log");
$("#cs-chanlog-text").text("Error reading channel log");
}
log.scrollTop(log.prop("scrollHeight"));
},
voteskip: function(data) {