Lines Matching refs:comment
94 var comment = new DrawioComment(null, cComment.id, cComment.content,
101 comment.addReplyDirect(confOldCommentToDrawio(cComment.replies[i], cComment.id));
104 return comment;
110 var comment = new DrawioComment({attVer: atlasComment.attVer, ui: ui}, atlasComment.id,
115 comment.parentId = parentId;
116 comment.version = atlasComment.version.number;
118 if (comment.content == DELETED_MARKER)
120 comment.content = mxResources.get('msgDeleted');
121 comment.isLocked = true;
124 var replies = atlasComment.children != null ? atlasComment.children.comment.results : [];
129 comment.addReplyDirect(reply);
136 comment.isResolved = i == (replies.length - 1);
140 return comment;
156 var comment = confOldCommentToDrawio(comments[i]);
158 if (comment != null) confComments.push(comment);
229 pComment.children = {comment: {results: []}}; class in pComment.children
232 pComment.children.comment.results.push(oldVerReplies[i].reply);
246 ui.addComment = function(comment, success, error) argument
248 if (commentsVer == null || !comment.content)
254 ui.remoteInvoke('addComment', [comment.content], null, function(id, version, attVer)
256 comment.version = version;
257 comment.file.attVer = attVer;
263 comment.id = confUser.id + ':' + Date.now();
268 tmpComments.push(comment);
272 success(comment.id);
278 success(comment.id);