Commit be501b16 authored by Ilya Kirillov's avatar Ilya Kirillov

If comment has been resolved, it will be hidden immedeatly if corresponding flag is turned off.

parent 6d90019b
...@@ -8862,6 +8862,18 @@ CDocument.prototype.AddComment = function(CommentData) ...@@ -8862,6 +8862,18 @@ CDocument.prototype.AddComment = function(CommentData)
}; };
CDocument.prototype.EditComment = function(Id, CommentData) CDocument.prototype.EditComment = function(Id, CommentData)
{ {
if (!this.Comments.IsUseSolved() && this.Comments.Get_CurrentId() === Id)
{
var oComment = this.Comments.Get_ById(Id);
if (oComment && !oComment.IsSolved() && CommentData.IsSolved())
{
this.Comments.Set_Current(null);
this.Api.sync_HideComment();
this.DrawingDocument.ClearCachePages();
this.DrawingDocument.FirePaint();
}
}
this.Comments.Set_CommentData(Id, CommentData); this.Comments.Set_CommentData(Id, CommentData);
this.Document_UpdateInterfaceState(); this.Document_UpdateInterfaceState();
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment