Lines Matching refs:comment

14772 	EditorUi.prototype.addComment = function(comment, success, error)  argument
14778 file.addComment(comment, success, error);
15060 function editComment(comment, cdiv, saveCallback, deleteOnCancel) argument
15062 …curEdited = {div: cdiv, comment: comment, saveCallback: saveCallback, deleteOnCancel: deleteOnCanc… property in CommentsWindow.editComment.curEdited
15070 textArea.value = comment.content;
15105 comment.content = textArea.value;
15106 mxUtils.write(commentTxt, comment.content);
15108 saveCallback(comment);
15142 function writeCommentDate(comment, dateDiv) argument
15145 var ts = new Date(comment.modifiedDate);
15179 function addComment(comment, parentArr, parent, level, showResolved) argument
15182 if (!showResolved && comment.isResolved)
15191 cdiv.setAttribute('data-commentId', comment.id);
15194 if (comment.isResolved && !Editor.isDarkMode())
15204 userImg.src = comment.user.pictureUrl || Editor.userImage;
15213 mxUtils.write(usernameDiv, comment.user.displayName || '');
15218 dateDiv.setAttribute('data-commentId', comment.id);
15219 writeCommentDate(comment, dateDiv);
15225 mxUtils.write(commentTxtDiv, comment.content || '');
15228 if (comment.isLocked)
15250 evtHandler(evt, comment);
15265 function collectReplies(comment) argument
15269 if (comment.replies != null)
15271 for (var i = 0; i < comment.replies.length; i++)
15274 collectReplies(comment.replies[i]);
15279 collectReplies(comment);
15289 newReply.pCommentId = comment.id;
15291 if (comment.replies == null) comment.replies = [];
15293 var replyComment = addComment(newReply, comment.replies, pdiv, level + 1);
15299 comment.addReply(newReply, function(id)
15302 comment.replies.push(newReply);
15334 if (!readOnly && !comment.isLocked && (level == 0 || canReplyToReplies))
15339 }, comment.isResolved);
15344 if (user != null && user.id == comment.user.id && !readOnly && !comment.isLocked)
15350 editComment(comment, cdiv, function()
15354 comment.editComment(comment.content, function()
15368 }, comment.isResolved);
15376 comment.deleteComment(function(markedOnly)
15396 var replies = collectReplies(comment).replies;
15405 if (parentArr[i] == comment)
15421 }, comment.isResolved);
15424 if (!readOnly && !comment.isLocked && level == 0) //Resolve is a top-level action only
15433 comment.isResolved = !comment.isResolved;
15434 …mxUtils.write(resolveActionLnk, comment.isResolved? mxResources.get('reopen') : mxResources.get('r…
15435 var actionsDisplay = comment.isResolved? 'none' : '';
15436 var replies = collectReplies(comment).replies;
15437 … var color = (Editor.isDarkMode()) ? 'transparent' : (comment.isResolved? 'ghostWhite' : 'white');
15461 if (comment.isResolved)
15471 …addAction(comment.isResolved? mxResources.get('reopen') : mxResources.get('resolve'), toggleResolv…
15485 for (var i = 0; comment.replies != null && i < comment.replies.length; i++)
15487 var reply = comment.replies[i];
15488 reply.isResolved = comment.isResolved; //copy isResolved to child comments (replies)
15489 addComment(reply, comment.replies, null, level + 1, showResolved);
15494 if (curEdited.comment.id == comment.id)
15496 var origContent = comment.content;
15497 comment.content = curEdited.comment.content;
15498 editComment(comment, cdiv, curEdited.saveCallback, curEdited.deleteOnCancel);
15499 comment.content = origContent;
15501 else if (curEdited.comment.id == null && curEdited.comment.pCommentId == comment.id)
15504 editComment(curEdited.comment, curEdited.div, curEdited.saveCallback, curEdited.deleteOnCancel);
15634 curEdited.comment.content = commentEditTxt.value;
15688 if (curEdited != null && curEdited.comment.id == null && curEdited.comment.pCommentId == null)
15691 … editComment(curEdited.comment, curEdited.div, curEdited.saveCallback, curEdited.deleteOnCancel);
15725 function processComment(comment) argument
15727 var div = modDateDivsMap[comment.id];
15731 writeCommentDate(comment, div);
15733 for (var i = 0; comment.replies != null && i < comment.replies.length; i++)
15735 processComment(comment.replies[i]);