send array of asc_CCommentData on asc_onAddComments event instead array of objects

This commit is contained in:
Alexander.Trofimov 2016-05-31 18:42:12 +03:00
parent c6b48565b9
commit 7a5d025854
4 changed files with 4 additions and 4 deletions

View file

@ -606,7 +606,7 @@ define([
},
onApiAddComments: function (data) {
for (var i = 0; i < data.length; ++i) {
var comment = this.readSDKComment(data[i].Id, data[i].Comment);
var comment = this.readSDKComment(data[i].asc_getId(), data[i]);
this.collection.push(comment);
}

View file

@ -480,7 +480,7 @@ define([
onApiAddComments: function(data) {
for (var i = 0; i < data.length; ++i) {
if (data[i].Comment && data[i].Comment.asc_getUserId() !== this.mode.user.id) {
if (data[i].asc_getUserId() !== this.mode.user.id) {
this.leftMenu.markCoauthOptions('comments');
break;
}

View file

@ -375,7 +375,7 @@ define([
onApiAddComments: function(data) {
for (var i = 0; i < data.length; ++i) {
if (data[i].Comment && data[i].Comment.asc_getUserId() !== this.mode.user.id) {
if (data[i].asc_getUserId() !== this.mode.user.id) {
this.leftMenu.markCoauthOptions('comments');
break;
}

View file

@ -516,7 +516,7 @@ define([
onApiAddComments: function(data) {
for (var i = 0; i < data.length; ++i) {
if (data[i].Comment && data[i].Comment.asc_getUserId() !== this.mode.user.id) {
if (data[i].asc_getUserId() !== this.mode.user.id) {
this.leftMenu.markCoauthOptions('comments');
break;
}