Commit 1c736661 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

Изменил способ отправки нескольких комментариев

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51613 954022d7-b5bf-4e40-9824-e11837661b57
parent 348acb3a
......@@ -2391,7 +2391,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
if ( _this.wb ) {
for (var i = 0; i < _this.wb.model.aWorksheets.length; i++) {
for (var j = 0; j < _this.wb.model.aWorksheets[i].aComments.length; j++) {
comments.push(_this.wb.model.aWorksheets[i].aComments[j]);
comments.push( { "Id": _this.wb.model.aWorksheets[i].aComments[j].asc_getId(), "Comment": _this.wb.model.aWorksheets[i].aComments[j] } );
}
}
}
......
......@@ -1070,7 +1070,7 @@
var commentList = []; // для отправки за один раз
for(var i = 0, length = this.model.aComments.length; i < length; ++i)
{
var comment = this.model.aComments[i];
var comment = { "Id": this.model.aComments[i].asc_getId(), "Comment": this.model.aComments[i] };
this.cellCommentator.addCommentSerialize(comment);
commentList.push(comment);
// Если, например, перемещаем лист
......
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