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
f4b556d3
Commit
f4b556d3
authored
Nov 21, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Hide the ability to add sparklines.
parent
7e8481d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
apps/spreadsheeteditor/main/app/controller/Toolbar.js
apps/spreadsheeteditor/main/app/controller/Toolbar.js
+3
-2
apps/spreadsheeteditor/main/app/view/Toolbar.js
apps/spreadsheeteditor/main/app/view/Toolbar.js
+5
-3
No files found.
apps/spreadsheeteditor/main/app/controller/Toolbar.js
View file @
f4b556d3
...
...
@@ -205,8 +205,9 @@ define([
toolbar
.
btnTextOrient
.
menu
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onTextOrientationMenu
,
this
));
toolbar
.
btnInsertImage
.
menu
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onInsertImageMenu
,
this
));
toolbar
.
btnInsertHyperlink
.
on
(
'
click
'
,
_
.
bind
(
this
.
onHyperlink
,
this
));
if
(
toolbar
.
mnuInsertChartPicker
)
toolbar
.
mnuInsertChartPicker
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onSelectChart
,
this
));
if
(
toolbar
.
mnuInsertSparkPicker
)
toolbar
.
mnuInsertSparkPicker
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onSelectSpark
,
this
));
toolbar
.
btnInsertChart
.
on
(
'
click
'
,
_
.
bind
(
this
.
onInsertChart
,
this
));
// if (toolbar.mnuInsertChartPicker) toolbar.mnuInsertChartPicker.on('item:click', _.bind(this.onSelectChart, this));
// if (toolbar.mnuInsertSparkPicker) toolbar.mnuInsertSparkPicker.on('item:click', _.bind(this.onSelectSpark, this));
toolbar
.
btnEditChart
.
on
(
'
click
'
,
_
.
bind
(
this
.
onInsertChart
,
this
));
toolbar
.
btnInsertText
.
on
(
'
click
'
,
_
.
bind
(
this
.
onBtnInsertTextClick
,
this
));
toolbar
.
btnInsertText
.
menu
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onInsertTextClick
,
this
));
...
...
apps/spreadsheeteditor/main/app/view/Toolbar.js
View file @
f4b556d3
...
...
@@ -503,8 +503,8 @@ define([
id
:
'
id-toolbar-btn-insertchart
'
,
cls
:
'
btn-toolbar
'
,
iconCls
:
'
btn-insertchart
'
,
lock
:
[
_set
.
editCell
,
_set
.
selChartText
,
_set
.
selShape
,
_set
.
selShapeText
,
_set
.
selImage
,
_set
.
lostConnect
,
_set
.
coAuth
]
,
menu
:
new
Common
.
UI
.
Menu
({
lock
:
[
_set
.
editCell
,
_set
.
selChartText
,
_set
.
selShape
,
_set
.
selShapeText
,
_set
.
selImage
,
_set
.
lostConnect
,
_set
.
coAuth
]
/*,
menu : new Common.UI.Menu({
items : [
this.mnuInsertChart = new Common.UI.MenuItem({
caption: this.textInsCharts,
...
...
@@ -529,7 +529,7 @@ define([
})
})
]
})
})
*/
});
me
.
btnEditChart
=
new
Common
.
UI
.
Button
({
...
...
@@ -1712,6 +1712,7 @@ define([
]
}));
/*
this.mnuInsertChartPicker = new Common.UI.DataView({
el: $('#id-toolbar-menu-insertchart'),
parentMenu: this.mnuInsertChart.menu,
...
...
@@ -1773,6 +1774,7 @@ define([
]),
itemTemplate: _.template('<div id="<%= id %>" class="item-chartlist <%= iconCls %>"></div>')
})
*/
},
setApi
:
function
(
api
)
{
...
...
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