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
3dd444be
Commit
3dd444be
authored
Aug 18, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Bug 32938.
parent
1a02a40d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
apps/common/main/lib/controller/ExternalDiagramEditor.js
apps/common/main/lib/controller/ExternalDiagramEditor.js
+4
-1
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+9
-0
No files found.
apps/common/main/lib/controller/ExternalDiagramEditor.js
View file @
3dd444be
...
...
@@ -182,7 +182,6 @@ define([
if
(
this
.
diagramEditorView
)
{
if
(
eventData
.
type
==
'
documentReady
'
)
{
this
.
diagramEditorView
.
_isExternalDocReady
=
true
;
this
.
diagramEditorView
.
setControlsDisabled
(
false
);
if
(
this
.
diagramEditorView
.
_chartData
)
{
externalEditor
&&
externalEditor
.
serviceCommand
(
'
setChartData
'
,
this
.
diagramEditorView
.
_chartData
);
this
.
diagramEditorView
.
_chartData
=
null
;
...
...
@@ -191,6 +190,10 @@ define([
this
.
onDiagrammEditingDisabled
();
}
}
else
if
(
eventData
.
type
==
'
chartDataReady
'
)
{
if
(
this
.
needDisableEditing
===
undefined
)
this
.
diagramEditorView
.
setControlsDisabled
(
false
);
}
else
if
(
eventData
.
type
==
"
shortcut
"
)
{
if
(
eventData
.
data
.
key
==
'
escape
'
)
this
.
diagramEditorView
.
hide
();
...
...
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
3dd444be
...
...
@@ -369,6 +369,13 @@ define([
}
},
onSelectionChanged
:
function
(
info
){
if
(
!
this
.
_isChartDataReady
){
this
.
_isChartDataReady
=
true
;
Common
.
Gateway
.
internalMessage
(
'
chartDataReady
'
);
}
},
onLongActionBegin
:
function
(
type
,
id
)
{
var
action
=
{
id
:
id
,
type
:
type
};
this
.
stackLongActions
.
push
(
action
);
...
...
@@ -908,6 +915,8 @@ define([
me
.
api
.
asc_registerCallback
(
'
asc_onAuthParticipantsChanged
'
,
_
.
bind
(
me
.
onAuthParticipantsChanged
,
me
));
me
.
api
.
asc_registerCallback
(
'
asc_onParticipantsChanged
'
,
_
.
bind
(
me
.
onAuthParticipantsChanged
,
me
));
/** coauthoring end **/
if
(
me
.
appOptions
.
isEditDiagram
)
me
.
api
.
asc_registerCallback
(
'
asc_onSelectionChanged
'
,
_
.
bind
(
me
.
onSelectionChanged
,
me
));
if
(
me
.
stackLongActions
.
exist
({
id
:
ApplyEditRights
,
type
:
Asc
.
c_oAscAsyncActionType
[
'
BlockInteraction
'
]}))
{
me
.
onLongActionEnd
(
Asc
.
c_oAscAsyncActionType
[
'
BlockInteraction
'
],
ApplyEditRights
);
...
...
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