VRFS-1437 fix bug

This commit is contained in:
Brian Smith 2014-04-08 01:17:40 -04:00
parent 73f819511e
commit 5784c26089
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@
var logger = context.JK.logger;
var rest = new JK.Rest();
var sessionId = null;
var $scope = $(".landing-details");
var $controls = null;
var $status = null;
var playing = false;
@ -137,6 +138,7 @@
rest.getSessionHistory(musicSessionId)
.done(function(response) {
if (response && response.comments) {
console.log("%o", response.comment_count);
$("#spnCommentCount", $scope).html(response.comment_count);
$.each(response.comments, function(index, val) {
renderComment(val.comment, val.creator.id, val.creator.name,