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
497b5313
Commit
497b5313
authored
Mar 13, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Bug 34159.
parent
51b2f784
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
+4
-0
apps/spreadsheeteditor/main/app/controller/Toolbar.js
apps/spreadsheeteditor/main/app/controller/Toolbar.js
+12
-0
No files found.
apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
View file @
497b5313
...
...
@@ -695,12 +695,15 @@ define([
(
new
SSE
.
Views
.
ChartSettingsDlg
(
{
chartSettings
:
props
,
imageSettings
:
item
.
chartInfo
,
isChart
:
true
,
api
:
me
.
api
,
handler
:
function
(
result
,
value
)
{
if
(
result
==
'
ok
'
)
{
if
(
me
.
api
)
{
me
.
api
.
asc_editChartDrawingObject
(
value
.
chartSettings
);
if
(
value
.
imageSettings
)
me
.
api
.
asc_setGraphicObjectProps
(
value
.
imageSettings
);
}
}
Common
.
NotificationCenter
.
trigger
(
'
edit:complete
'
,
me
);
...
...
@@ -1205,6 +1208,7 @@ define([
isshapemenu
=
true
;
}
}
else
if
(
elValue
.
asc_getChartProperties
()
)
{
documentHolder
.
mnuChartEdit
.
chartInfo
=
elValue
;
ischartmenu
=
true
;
has_chartprops
=
true
;
}
...
...
apps/spreadsheeteditor/main/app/controller/Toolbar.js
View file @
497b5313
...
...
@@ -750,18 +750,30 @@ define([
var
win
,
props
;
if
(
me
.
api
){
props
=
me
.
api
.
asc_getChartObject
();
var
selectedObjects
=
me
.
api
.
asc_getGraphicObjectProps
(),
imageSettings
=
null
;
for
(
var
i
=
0
;
i
<
selectedObjects
.
length
;
i
++
)
{
if
(
selectedObjects
[
i
].
asc_getObjectType
()
==
Asc
.
c_oAscTypeSelectElement
.
Image
)
{
var
elValue
=
selectedObjects
[
i
].
asc_getObjectValue
();
if
(
elValue
.
asc_getChartProperties
()
)
imageSettings
=
elValue
;
}
}
if
(
props
)
{
var
ischartedit
=
(
me
.
toolbar
.
mode
.
isEditDiagram
||
info
.
asc_getFlags
().
asc_getSelectionType
()
==
Asc
.
c_oAscSelectionType
.
RangeChart
||
info
.
asc_getFlags
().
asc_getSelectionType
()
==
Asc
.
c_oAscSelectionType
.
RangeChartText
);
(
new
SSE
.
Views
.
ChartSettingsDlg
(
{
chartSettings
:
props
,
imageSettings
:
imageSettings
,
isChart
:
true
,
api
:
me
.
api
,
handler
:
function
(
result
,
value
)
{
if
(
result
==
'
ok
'
)
{
if
(
me
.
api
)
{
(
ischartedit
)
?
me
.
api
.
asc_editChartDrawingObject
(
value
.
chartSettings
)
:
me
.
api
.
asc_addChartDrawingObject
(
value
.
chartSettings
);
if
(
value
.
imageSettings
)
me
.
api
.
asc_setGraphicObjectProps
(
value
.
imageSettings
);
}
}
Common
.
NotificationCenter
.
trigger
(
'
edit:complete
'
,
me
.
toolbar
);
...
...
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