Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
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
sdkjs
Commits
2f856637
Commit
2f856637
authored
Aug 03, 2016
by
Alexey Golubev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/v4.0.2'
parents
740ed93f
27083f67
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
16 deletions
+22
-16
Readme.md
Readme.md
+1
-1
cell/view/WorkbookView.js
cell/view/WorkbookView.js
+21
-15
No files found.
Readme.md
View file @
2f856637
[
![License
](
https://img.shields.io/badge/License-GNU%20AGPL%20V3-green.svg?style=flat
)
](http://www.gnu.org/licenses/agpl-3.0.ru.html) !
[
Release
](
https://img.shields.io/badge/Release-v4.0.
1
-blue.svg?style=flat
)
[
![License
](
https://img.shields.io/badge/License-GNU%20AGPL%20V3-green.svg?style=flat
)
](http://www.gnu.org/licenses/agpl-3.0.ru.html) !
[
Release
](
https://img.shields.io/badge/Release-v4.0.
2
-blue.svg?style=flat
)
## Sdkjs
## Sdkjs
...
...
cell/view/WorkbookView.js
View file @
2f856637
...
@@ -2476,21 +2476,27 @@
...
@@ -2476,21 +2476,27 @@
};
};
WorkbookView
.
prototype
.
_initCommentsToSave
=
function
()
{
WorkbookView
.
prototype
.
_initCommentsToSave
=
function
()
{
var
isFirst
=
true
;
var
isFirst
=
true
,
ws
;
for
(
var
wsKey
in
this
.
wsViews
)
{
// Колличество листов
var
wsView
=
this
.
wsViews
[
wsKey
];
var
countWorksheets
=
this
.
model
.
getWorksheetCount
();
var
wsModel
=
wsView
.
model
;
for
(
var
i
=
0
;
i
<
countWorksheets
;
++
i
)
{
wsView
.
cellCommentator
.
prepareCommentsToSave
();
ws
=
this
.
model
.
getWorksheet
(
i
);
wsModel
.
aCommentsCoords
=
wsView
.
cellCommentator
.
aCommentCoords
;
if
(
ws
&&
0
<
ws
.
aComments
.
length
)
{
if
(
isFirst
)
{
var
wsView
=
this
.
getWorksheet
(
i
);
isFirst
=
false
;
var
wsModel
=
wsView
.
model
;
this
.
cellCommentator
.
worksheet
=
wsView
;
wsView
.
cellCommentator
.
prepareCommentsToSave
();
this
.
cellCommentator
.
overlayCtx
=
wsView
.
overlayCtx
;
wsModel
.
aCommentsCoords
=
wsView
.
cellCommentator
.
aCommentCoords
;
this
.
cellCommentator
.
drawingCtx
=
wsView
.
drawingCtx
;
this
.
cellCommentator
.
prepareCommentsToSave
();
if
(
isFirst
)
{
wsModel
.
aComments
=
wsModel
.
aComments
.
concat
(
this
.
model
.
aComments
);
isFirst
=
false
;
wsModel
.
aCommentsCoords
=
wsModel
.
aCommentsCoords
.
concat
(
this
.
cellCommentator
.
aCommentCoords
);
this
.
cellCommentator
.
worksheet
=
wsView
;
this
.
cellCommentator
.
overlayCtx
=
wsView
.
overlayCtx
;
this
.
cellCommentator
.
drawingCtx
=
wsView
.
drawingCtx
;
this
.
cellCommentator
.
prepareCommentsToSave
();
wsModel
.
aComments
=
wsModel
.
aComments
.
concat
(
this
.
model
.
aComments
);
wsModel
.
aCommentsCoords
=
wsModel
.
aCommentsCoords
.
concat
(
this
.
cellCommentator
.
aCommentCoords
);
}
}
}
}
}
};
};
...
...
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