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
7657f750
Commit
7657f750
authored
May 27, 2016
by
SergeyLuzyanin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
баг с бесконечной ромашкой при подключении вторым пользователем
parent
12331990
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
42 deletions
+15
-42
slide/api.js
slide/api.js
+15
-42
No files found.
slide/api.js
View file @
7657f750
...
...
@@ -4567,10 +4567,6 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
if
(
0
==
this
.
DocumentType
)
this
.
WordControl
.
m_oLogicDocument
.
LoadEmptyDocument
();
else
if
(
1
==
this
.
DocumentType
)
{
this
.
WordControl
.
m_oLogicDocument
.
LoadTestDocument
();
}
else
{
if
(
this
.
LoadedObject
)
...
...
@@ -4582,38 +4578,16 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
this
.
isApplyChangesOnOpenEnabled
=
false
;
this
.
bNoSendComments
=
true
;
var
OtherChanges
=
AscCommon
.
CollaborativeEditing
.
m_aChanges
.
length
>
0
;
AscCommon
.
CollaborativeEditing
.
Apply_Changes
();
AscCommon
.
CollaborativeEditing
.
Release_Locks
();
AscCommon
.
CollaborativeEditing
.
Apply_Changes
();
AscCommon
.
CollaborativeEditing
.
Release_Locks
();
this
.
bNoSendComments
=
false
;
this
.
isApplyChangesOnOpen
=
true
;
var
_slides
=
this
.
WordControl
.
m_oLogicDocument
.
Slides
;
var
_slidesCount
=
_slides
.
length
;
for
(
var
i
=
0
;
i
<
_slidesCount
;
i
++
)
{
var
slideComments
=
_slides
[
i
].
slideComments
;
if
(
slideComments
)
{
var
_comments
=
slideComments
.
comments
;
var
_commentsCount
=
_comments
.
length
;
for
(
var
j
=
0
;
j
<
_commentsCount
;
j
++
)
{
this
.
sync_AddComment
(
_comments
[
j
].
Get_Id
(),
_comments
[
j
].
Data
);
}
}
}
this
.
bAddComments
=
true
;
if
(
OtherChanges
)
this
.
isApplyChangesOnOpen
=
true
;
// Применяем все lock-и (ToDo возможно стоит пересмотреть вообще Lock-и)
for
(
var
i
=
0
;
i
<
this
.
arrPreOpenLocksObjects
.
length
;
++
i
)
{
return
;
this
.
arrPreOpenLocksObjects
[
i
]()
;
}
// Применяем все lock-и (ToDo возможно стоит пересмотреть вообще Lock-и)
for
(
var
i
=
0
;
i
<
this
.
arrPreOpenLocksObjects
.
length
;
++
i
)
{
this
.
arrPreOpenLocksObjects
[
i
]();
}
this
.
arrPreOpenLocksObjects
=
[];
this
.
arrPreOpenLocksObjects
=
[];
}
}
this
.
WordControl
.
m_oLogicDocument
.
Recalculate
({
Drawings
:
{
All
:
true
,
Map
:
{}}});
...
...
@@ -4669,9 +4643,8 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
this
.
WordControl
.
m_oLogicDocument
.
Document_UpdateRulersState
();
this
.
WordControl
.
m_oLogicDocument
.
Document_UpdateSelectionState
();
this
.
LoadedObject
=
null
;
this
.
bInit_word_control
=
true
;
if
(
!
(
this
.
bAddComments
===
true
)
&&
!
this
.
bNoSendComments
)
if
(
!
this
.
bNoSendComments
)
{
var
_slides
=
this
.
WordControl
.
m_oLogicDocument
.
Slides
;
var
_slidesCount
=
_slides
.
length
;
...
...
@@ -4691,21 +4664,21 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
}
this
.
asc_fireCallback
(
"
asc_onDocumentContentReady
"
);
this
.
isApplyChangesOnOpen
=
false
;
this
.
bAddComments
=
false
;
this
.
WordControl
.
InitControl
();
if
(
bIsScroll
)
{
this
.
WordControl
.
OnScroll
();
}
if
(
!
this
.
isViewMode
)
if
(
!
this
.
isViewMode
)
{
this
.
sendStandartTextures
();
if
(
this
.
shapeElementId
)
{
this
.
sendStandartTextures
();
if
(
this
.
shapeElementId
)
{
this
.
WordControl
.
m_oDrawingDocument
.
InitGuiCanvasShape
(
this
.
shapeElementId
);
this
.
WordControl
.
m_oDrawingDocument
.
InitGuiCanvasShape
(
this
.
shapeElementId
);
}
}
}
if
(
this
.
isViewMode
)
this
.
asc_setViewMode
(
true
);
...
...
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