Allow channel admins to read channel logs

This commit is contained in:
calzoneman 2013-08-06 14:20:47 -04:00
parent 07249f3589
commit a371ff629d
6 changed files with 88 additions and 0 deletions

View file

@ -497,6 +497,19 @@ Callbacks = {
);
},
readChanLog: function (data) {
var log = $("#chanlog_contents");
if(log.length == 0)
return;
if(data.success) {
log.text(data.data);
} else {
log.text("Error reading channel log");
}
log.scrollTop(log.prop("scrollHeight"));
},
voteskip: function(data) {
if(data.count > 0) {
$("#voteskip").text("Voteskip ("+data.count+"/"+data.need+")");