send array of asc_CCommentData on asc_onAddComments event instead array of objects
This commit is contained in:
parent
c6b48565b9
commit
7a5d025854
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue