VRFS-1020 share dialog work

This commit is contained in:
Brian Smith 2014-02-05 02:15:55 -05:00
parent fbba95856d
commit 3f9bb9bdad
1 changed files with 10 additions and 1 deletions

View File

@ -19,7 +19,16 @@
rest.addSessionComment(sessionId, JK.currentUserId, comment)
.done(function(response) {
$("#spnCommentCount").html(parseInt($("#spnCommentCount").text()) + 1);
$(".landing-comment-scroller").prepend(comment);
var template = $('#template-landing-comment').html();
var commentHtml = context.JK.fillTemplate(template, {
avatar_url: context.JK.currentUserAvatarUrl,
name: context.JK.currentUserName,
comment: comment
});
$(".landing-comment-scroller").prepend(commentHtml);
$("#txtSessionComment").val("Enter a comment...");
});
}