Commit 8275ab09 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

_prepareComments перевел на внутреннюю функцию в cellCommentator

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55418 954022d7-b5bf-4e40-9824-e11837661b57
parent 3f0e7f6f
......@@ -1141,13 +1141,8 @@
WorksheetView.prototype._prepareComments = function () {
// Теперь получение всех комментариев через asc_getWorkbookComments
var commentList = [];
for (var i = 0; i < this.model.aComments.length; i++) {
var comment = { "Id": this.model.aComments[i].asc_getId(), "Comment": this.model.aComments[i] };
this.cellCommentator.addCommentSerialize(comment["Comment"]);
commentList.push(comment);
}
if ( commentList.length )
var commentList = this.cellCommentator.prepareComments(this.model.aComments);
if (0 < commentList.length)
this.model.workbook.handlers.trigger("asc_onAddComments", commentList);
};
......
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