VRFS-1020 share dialog work
This commit is contained in:
parent
fbba95856d
commit
3f9bb9bdad
|
|
@ -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...");
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue