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
fee0e436
Commit
fee0e436
authored
Sep 16, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Use c_oAscSparklineType.
parent
5924e4ff
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
19 deletions
+17
-19
apps/spreadsheeteditor/main/app/controller/Toolbar.js
apps/spreadsheeteditor/main/app/controller/Toolbar.js
+8
-10
apps/spreadsheeteditor/main/app/view/ChartSettings.js
apps/spreadsheeteditor/main/app/view/ChartSettings.js
+3
-3
apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js
apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js
+3
-3
apps/spreadsheeteditor/main/app/view/Toolbar.js
apps/spreadsheeteditor/main/app/view/Toolbar.js
+3
-3
No files found.
apps/spreadsheeteditor/main/app/controller/Toolbar.js
View file @
fee0e436
...
...
@@ -789,17 +789,15 @@ define([
onSelectSpark
:
function
(
picker
,
item
,
record
,
e
)
{
if
(
!
this
.
editMode
)
return
;
var
me
=
this
,
info
=
me
.
api
.
asc_getCellInfo
();
if
(
info
.
asc_getFlags
().
asc_getSelectionType
()
!=
Asc
.
c_oAscSelectionType
.
RangeImage
)
{
var
win
,
props
;
var
me
=
this
,
info
=
me
.
api
.
asc_getCellInfo
(),
type
=
info
.
asc_getFlags
().
asc_getSelectionType
();
if
(
type
==
Asc
.
c_oAscSelectionType
.
RangeCells
||
type
==
Asc
.
c_oAscSelectionType
.
RangeCol
||
type
==
Asc
.
c_oAscSelectionType
.
RangeRow
||
type
==
Asc
.
c_oAscSelectionType
.
RangeMax
)
{
var
props
;
if
(
me
.
api
){
var
ischartedit
=
(
info
.
asc_getFlags
().
asc_getSelectionType
()
==
Asc
.
c_oAscSelectionType
.
RangeChart
||
info
.
asc_getFlags
().
asc_getSelectionType
()
==
Asc
.
c_oAscSelectionType
.
RangeChartText
);
if
(
!
ischartedit
)
{
props
=
me
.
api
.
asc_getChartObject
();
if
(
props
)
{
props
.
putType
(
record
.
get
(
'
type
'
));
me
.
api
.
asc_addChartDrawingObject
(
props
);
}
props
=
me
.
api
.
asc_getChartObject
();
if
(
props
)
{
props
.
putType
(
record
.
get
(
'
type
'
));
me
.
api
.
asc_addChartDrawingObject
(
props
);
}
}
}
...
...
apps/spreadsheeteditor/main/app/view/ChartSettings.js
View file @
fee0e436
...
...
@@ -248,9 +248,9 @@ define([
{
id
:
'
menu-chart-group-sparkwin
'
,
caption
:
me
.
textWinLossSpark
}
]),
store
:
new
Common
.
UI
.
DataViewStore
([
{
group
:
'
menu-chart-group-sparkcolumn
'
,
type
:
Asc
.
E
SparklineType
.
Column
,
allowSelected
:
true
,
iconCls
:
'
spark-column
'
},
{
group
:
'
menu-chart-group-sparkline
'
,
type
:
Asc
.
E
SparklineType
.
Line
,
allowSelected
:
true
,
iconCls
:
'
spark-line
'
},
{
group
:
'
menu-chart-group-sparkwin
'
,
type
:
Asc
.
E
SparklineType
.
Stacked
,
allowSelected
:
true
,
iconCls
:
'
spark-win
'
}
{
group
:
'
menu-chart-group-sparkcolumn
'
,
type
:
Asc
.
c_oAsc
SparklineType
.
Column
,
allowSelected
:
true
,
iconCls
:
'
spark-column
'
},
{
group
:
'
menu-chart-group-sparkline
'
,
type
:
Asc
.
c_oAsc
SparklineType
.
Line
,
allowSelected
:
true
,
iconCls
:
'
spark-line
'
},
{
group
:
'
menu-chart-group-sparkwin
'
,
type
:
Asc
.
c_oAsc
SparklineType
.
Stacked
,
allowSelected
:
true
,
iconCls
:
'
spark-win
'
}
]),
itemTemplate
:
_
.
template
(
'
<div id="<%= id %>" class="item-chartlist <%= iconCls %>"></div>
'
)
});
...
...
apps/spreadsheeteditor/main/app/view/ChartSettingsDlg.js
View file @
fee0e436
...
...
@@ -827,9 +827,9 @@ define([ 'text!spreadsheeteditor/main/app/template/ChartSettingsDlg.template'
{
id
:
'
menu-chart-group-sparkwin
'
,
caption
:
me
.
textWinLossSpark
}
]),
store
:
new
Common
.
UI
.
DataViewStore
([
{
group
:
'
menu-chart-group-sparkcolumn
'
,
type
:
Asc
.
E
SparklineType
.
Column
,
allowSelected
:
true
,
iconCls
:
'
spark-column
'
,
selected
:
true
},
{
group
:
'
menu-chart-group-sparkline
'
,
type
:
Asc
.
E
SparklineType
.
Line
,
allowSelected
:
true
,
iconCls
:
'
spark-line
'
},
{
group
:
'
menu-chart-group-sparkwin
'
,
type
:
Asc
.
E
SparklineType
.
Stacked
,
allowSelected
:
true
,
iconCls
:
'
spark-win
'
}
{
group
:
'
menu-chart-group-sparkcolumn
'
,
type
:
Asc
.
c_oAsc
SparklineType
.
Column
,
allowSelected
:
true
,
iconCls
:
'
spark-column
'
,
selected
:
true
},
{
group
:
'
menu-chart-group-sparkline
'
,
type
:
Asc
.
c_oAsc
SparklineType
.
Line
,
allowSelected
:
true
,
iconCls
:
'
spark-line
'
},
{
group
:
'
menu-chart-group-sparkwin
'
,
type
:
Asc
.
c_oAsc
SparklineType
.
Stacked
,
allowSelected
:
true
,
iconCls
:
'
spark-win
'
}
]),
itemTemplate
:
_
.
template
(
'
<div id="<%= id %>" class="item-chartlist <%= iconCls %>"></div>
'
)
});
...
...
apps/spreadsheeteditor/main/app/view/Toolbar.js
View file @
fee0e436
...
...
@@ -736,9 +736,9 @@ define([
{
id
:
'
menu-chart-group-sparkwin
'
,
caption
:
me
.
textWinLossSpark
}
]),
store
:
new
Common
.
UI
.
DataViewStore
([
{
group
:
'
menu-chart-group-sparkcolumn
'
,
type
:
Asc
.
E
SparklineType
.
Column
,
allowSelected
:
true
,
iconCls
:
'
spark-column
'
},
{
group
:
'
menu-chart-group-sparkline
'
,
type
:
Asc
.
E
SparklineType
.
Line
,
allowSelected
:
true
,
iconCls
:
'
spark-line
'
},
{
group
:
'
menu-chart-group-sparkwin
'
,
type
:
Asc
.
E
SparklineType
.
Stacked
,
allowSelected
:
true
,
iconCls
:
'
spark-win
'
}
{
group
:
'
menu-chart-group-sparkcolumn
'
,
type
:
Asc
.
c_oAsc
SparklineType
.
Column
,
allowSelected
:
true
,
iconCls
:
'
spark-column
'
},
{
group
:
'
menu-chart-group-sparkline
'
,
type
:
Asc
.
c_oAsc
SparklineType
.
Line
,
allowSelected
:
true
,
iconCls
:
'
spark-line
'
},
{
group
:
'
menu-chart-group-sparkwin
'
,
type
:
Asc
.
c_oAsc
SparklineType
.
Stacked
,
allowSelected
:
true
,
iconCls
:
'
spark-win
'
}
]),
itemTemplate
:
_
.
template
(
'
<div id="<%= id %>" class="item-chartlist <%= iconCls %>"></div>
'
)
})
...
...
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