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
4e531277
Commit
4e531277
authored
Jul 03, 2017
by
Alexey Golubev
Committed by
GitHub
Jul 03, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #135 from ONLYOFFICE/feature/bug35311
fix bug
parents
a1771911
9b782d18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
4 deletions
+42
-4
slide/Drawing/DrawingDocument.js
slide/Drawing/DrawingDocument.js
+21
-2
word/Drawing/DrawingDocument.js
word/Drawing/DrawingDocument.js
+21
-2
No files found.
slide/Drawing/DrawingDocument.js
View file @
4e531277
...
...
@@ -691,6 +691,7 @@ function CDrawingCollaborativeTarget()
this
.
HtmlElementY
=
0
;
this
.
Style
=
""
;
this
.
IsInsertToDOM
=
false
;
}
CDrawingCollaborativeTarget
.
prototype
=
{
...
...
@@ -844,6 +845,7 @@ CDrawingCollaborativeTarget.prototype =
if
(
bIsHtmlElementCreate
)
{
_drawing_doc
.
m_oWordControl
.
m_oMainView
.
HtmlElement
.
appendChild
(
this
.
HtmlElement
);
this
.
IsInsertToDOM
=
true
;
}
if
(
this
.
HtmlElement
.
style
.
display
!=
"
block
"
)
...
...
@@ -854,7 +856,11 @@ CDrawingCollaborativeTarget.prototype =
Remove
:
function
(
_drawing_doc
)
{
_drawing_doc
.
m_oWordControl
.
m_oMainView
.
HtmlElement
.
removeChild
(
this
.
HtmlElement
);
if
(
this
.
IsInsertToDOM
)
{
_drawing_doc
.
m_oWordControl
.
m_oMainView
.
HtmlElement
.
removeChild
(
this
.
HtmlElement
);
this
.
IsInsertToDOM
=
false
;
}
},
Update
:
function
(
_drawing_doc
)
...
...
@@ -3137,12 +3143,25 @@ function CDrawingDocument()
};
this
.
Collaborative_RemoveTarget
=
function
(
_id
)
{
for
(
var
i
=
0
;
i
<
this
.
CollaborativeTargets
.
length
;
i
++
)
var
i
=
0
;
for
(
i
=
0
;
i
<
this
.
CollaborativeTargets
.
length
;
i
++
)
{
if
(
_id
==
this
.
CollaborativeTargets
[
i
].
Id
)
{
this
.
CollaborativeTargets
[
i
].
Remove
(
this
);
this
.
CollaborativeTargets
.
splice
(
i
,
1
);
i
--
;
}
}
var
_len_tasks
=
this
.
CollaborativeTargetsUpdateTasks
.
length
;
for
(
i
=
0
;
i
<
_len_tasks
;
i
++
)
{
var
_tmp
=
this
.
CollaborativeTargetsUpdateTasks
[
i
];
if
(
_tmp
[
0
]
==
_id
)
{
this
.
CollaborativeTargetsUpdateTasks
.
splice
(
i
,
1
);
i
--
;
}
}
};
...
...
word/Drawing/DrawingDocument.js
View file @
4e531277
...
...
@@ -1869,6 +1869,7 @@ function CDrawingCollaborativeTarget()
this
.
Color
=
null
;
this
.
Style
=
""
;
this
.
IsInsertToDOM
=
false
;
}
CDrawingCollaborativeTarget
.
prototype
=
{
...
...
@@ -2034,12 +2035,17 @@ CDrawingCollaborativeTarget.prototype =
if
(
bIsHtmlElementCreate
)
{
_drawing_doc
.
m_oWordControl
.
m_oMainView
.
HtmlElement
.
appendChild
(
this
.
HtmlElement
);
this
.
IsInsertToDOM
=
true
;
}
},
Remove
:
function
(
_drawing_doc
)
{
_drawing_doc
.
m_oWordControl
.
m_oMainView
.
HtmlElement
.
removeChild
(
this
.
HtmlElement
);
if
(
this
.
IsInsertToDOM
)
{
_drawing_doc
.
m_oWordControl
.
m_oMainView
.
HtmlElement
.
removeChild
(
this
.
HtmlElement
);
this
.
IsInsertToDOM
=
false
;
}
},
Update
:
function
(
_drawing_doc
)
...
...
@@ -7319,12 +7325,25 @@ function CDrawingDocument()
};
this
.
Collaborative_RemoveTarget
=
function
(
_id
)
{
for
(
var
i
=
0
;
i
<
this
.
CollaborativeTargets
.
length
;
i
++
)
var
i
=
0
;
for
(
i
=
0
;
i
<
this
.
CollaborativeTargets
.
length
;
i
++
)
{
if
(
_id
==
this
.
CollaborativeTargets
[
i
].
Id
)
{
this
.
CollaborativeTargets
[
i
].
Remove
(
this
);
this
.
CollaborativeTargets
.
splice
(
i
,
1
);
i
--
;
}
}
var
_len_tasks
=
this
.
CollaborativeTargetsUpdateTasks
.
length
;
for
(
i
=
0
;
i
<
_len_tasks
;
i
++
)
{
var
_tmp
=
this
.
CollaborativeTargetsUpdateTasks
[
i
];
if
(
_tmp
[
0
]
==
_id
)
{
this
.
CollaborativeTargetsUpdateTasks
.
splice
(
i
,
1
);
i
--
;
}
}
};
...
...
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