Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
7a5d0258
Commit
7a5d0258
authored
May 31, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send array of asc_CCommentData on asc_onAddComments event instead array of objects
parent
c6b48565
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
apps/common/main/lib/controller/Comments.js
apps/common/main/lib/controller/Comments.js
+1
-1
apps/documenteditor/main/app/controller/LeftMenu.js
apps/documenteditor/main/app/controller/LeftMenu.js
+1
-1
apps/presentationeditor/main/app/controller/LeftMenu.js
apps/presentationeditor/main/app/controller/LeftMenu.js
+1
-1
apps/spreadsheeteditor/main/app/controller/LeftMenu.js
apps/spreadsheeteditor/main/app/controller/LeftMenu.js
+1
-1
No files found.
apps/common/main/lib/controller/Comments.js
View file @
7a5d0258
...
@@ -606,7 +606,7 @@ define([
...
@@ -606,7 +606,7 @@ define([
},
},
onApiAddComments
:
function
(
data
)
{
onApiAddComments
:
function
(
data
)
{
for
(
var
i
=
0
;
i
<
data
.
length
;
++
i
)
{
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
);
this
.
collection
.
push
(
comment
);
}
}
...
...
apps/documenteditor/main/app/controller/LeftMenu.js
View file @
7a5d0258
...
@@ -480,7 +480,7 @@ define([
...
@@ -480,7 +480,7 @@ define([
onApiAddComments
:
function
(
data
)
{
onApiAddComments
:
function
(
data
)
{
for
(
var
i
=
0
;
i
<
data
.
length
;
++
i
)
{
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
'
);
this
.
leftMenu
.
markCoauthOptions
(
'
comments
'
);
break
;
break
;
}
}
...
...
apps/presentationeditor/main/app/controller/LeftMenu.js
View file @
7a5d0258
...
@@ -375,7 +375,7 @@ define([
...
@@ -375,7 +375,7 @@ define([
onApiAddComments
:
function
(
data
)
{
onApiAddComments
:
function
(
data
)
{
for
(
var
i
=
0
;
i
<
data
.
length
;
++
i
)
{
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
'
);
this
.
leftMenu
.
markCoauthOptions
(
'
comments
'
);
break
;
break
;
}
}
...
...
apps/spreadsheeteditor/main/app/controller/LeftMenu.js
View file @
7a5d0258
...
@@ -516,7 +516,7 @@ define([
...
@@ -516,7 +516,7 @@ define([
onApiAddComments
:
function
(
data
)
{
onApiAddComments
:
function
(
data
)
{
for
(
var
i
=
0
;
i
<
data
.
length
;
++
i
)
{
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
'
);
this
.
leftMenu
.
markCoauthOptions
(
'
comments
'
);
break
;
break
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment