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
e0575a4d
Commit
e0575a4d
authored
Sep 23, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Bug 33139.
parent
d4c0969d
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
205 additions
and
194 deletions
+205
-194
apps/common/main/lib/component/Button.js
apps/common/main/lib/component/Button.js
+1
-1
apps/spreadsheeteditor/main/app/controller/Toolbar.js
apps/spreadsheeteditor/main/app/controller/Toolbar.js
+14
-8
apps/spreadsheeteditor/main/app/view/Toolbar.js
apps/spreadsheeteditor/main/app/view/Toolbar.js
+190
-185
No files found.
apps/common/main/lib/component/Button.js
View file @
e0575a4d
...
@@ -494,7 +494,7 @@ define([
...
@@ -494,7 +494,7 @@ define([
},
},
setMenu
:
function
(
m
)
{
setMenu
:
function
(
m
)
{
if
(
m
&&
_
.
isObject
(
m
)
&&
_
.
isFunction
(
m
.
render
)){
if
(
this
.
rendered
&&
m
&&
_
.
isObject
(
m
)
&&
_
.
isFunction
(
m
.
render
)){
this
.
menu
=
m
;
this
.
menu
=
m
;
this
.
menu
.
render
(
this
.
cmpEl
);
this
.
menu
.
render
(
this
.
cmpEl
);
}
}
...
...
apps/spreadsheeteditor/main/app/controller/Toolbar.js
View file @
e0575a4d
...
@@ -183,9 +183,11 @@ define([
...
@@ -183,9 +183,11 @@ define([
toolbar
.
mnuTextColorPicker
.
on
(
'
select
'
,
_
.
bind
(
this
.
onTextColorSelect
,
this
));
toolbar
.
mnuTextColorPicker
.
on
(
'
select
'
,
_
.
bind
(
this
.
onTextColorSelect
,
this
));
toolbar
.
mnuBackColorPicker
.
on
(
'
select
'
,
_
.
bind
(
this
.
onBackColorSelect
,
this
));
toolbar
.
mnuBackColorPicker
.
on
(
'
select
'
,
_
.
bind
(
this
.
onBackColorSelect
,
this
));
toolbar
.
btnBorders
.
on
(
'
click
'
,
_
.
bind
(
this
.
onBorders
,
this
));
toolbar
.
btnBorders
.
on
(
'
click
'
,
_
.
bind
(
this
.
onBorders
,
this
));
toolbar
.
btnBorders
.
menu
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onBordersMenu
,
this
));
if
(
toolbar
.
btnBorders
.
rendered
)
{
toolbar
.
mnuBorderWidth
.
on
(
'
item:toggle
'
,
_
.
bind
(
this
.
onBordersWidth
,
this
));
toolbar
.
btnBorders
.
menu
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onBordersMenu
,
this
));
toolbar
.
mnuBorderColorPicker
.
on
(
'
select
'
,
_
.
bind
(
this
.
onBordersColor
,
this
));
toolbar
.
mnuBorderWidth
.
on
(
'
item:toggle
'
,
_
.
bind
(
this
.
onBordersWidth
,
this
));
toolbar
.
mnuBorderColorPicker
.
on
(
'
select
'
,
_
.
bind
(
this
.
onBordersColor
,
this
));
}
toolbar
.
btnAlignLeft
.
on
(
'
click
'
,
_
.
bind
(
this
.
onHorizontalAlign
,
this
,
'
left
'
));
toolbar
.
btnAlignLeft
.
on
(
'
click
'
,
_
.
bind
(
this
.
onHorizontalAlign
,
this
,
'
left
'
));
toolbar
.
btnAlignCenter
.
on
(
'
click
'
,
_
.
bind
(
this
.
onHorizontalAlign
,
this
,
'
center
'
));
toolbar
.
btnAlignCenter
.
on
(
'
click
'
,
_
.
bind
(
this
.
onHorizontalAlign
,
this
,
'
center
'
));
toolbar
.
btnAlignRight
.
on
(
'
click
'
,
_
.
bind
(
this
.
onHorizontalAlign
,
this
,
'
right
'
));
toolbar
.
btnAlignRight
.
on
(
'
click
'
,
_
.
bind
(
this
.
onHorizontalAlign
,
this
,
'
right
'
));
...
@@ -244,11 +246,11 @@ define([
...
@@ -244,11 +246,11 @@ define([
toolbar
.
cmbFontSize
.
on
(
'
combo:focusin
'
,
_
.
bind
(
this
.
onComboOpen
,
this
,
false
));
toolbar
.
cmbFontSize
.
on
(
'
combo:focusin
'
,
_
.
bind
(
this
.
onComboOpen
,
this
,
false
));
if
(
toolbar
.
mnuZoomIn
)
toolbar
.
mnuZoomIn
.
on
(
'
click
'
,
_
.
bind
(
this
.
onZoomInClick
,
this
));
if
(
toolbar
.
mnuZoomIn
)
toolbar
.
mnuZoomIn
.
on
(
'
click
'
,
_
.
bind
(
this
.
onZoomInClick
,
this
));
if
(
toolbar
.
mnuZoomOut
)
toolbar
.
mnuZoomOut
.
on
(
'
click
'
,
_
.
bind
(
this
.
onZoomOutClick
,
this
));
if
(
toolbar
.
mnuZoomOut
)
toolbar
.
mnuZoomOut
.
on
(
'
click
'
,
_
.
bind
(
this
.
onZoomOutClick
,
this
));
toolbar
.
btnShowMode
.
menu
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onHideMenu
,
this
));
if
(
toolbar
.
btnShowMode
.
rendered
)
toolbar
.
btnShowMode
.
menu
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onHideMenu
,
this
));
toolbar
.
listStyles
.
on
(
'
click
'
,
_
.
bind
(
this
.
onListStyleSelect
,
this
));
toolbar
.
listStyles
.
on
(
'
click
'
,
_
.
bind
(
this
.
onListStyleSelect
,
this
));
toolbar
.
btnNumberFormat
.
menu
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onNumberFormatMenu
,
this
));
if
(
toolbar
.
btnNumberFormat
.
rendered
)
toolbar
.
btnNumberFormat
.
menu
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onNumberFormatMenu
,
this
));
toolbar
.
btnCurrencyStyle
.
menu
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onNumberFormatMenu
,
this
));
toolbar
.
btnCurrencyStyle
.
menu
.
on
(
'
item:click
'
,
_
.
bind
(
this
.
onNumberFormatMenu
,
this
));
toolbar
.
mnuitemCompactToolbar
.
on
(
'
toggle
'
,
_
.
bind
(
this
.
onChangeViewMode
,
this
));
if
(
toolbar
.
mnuitemCompactToolbar
)
toolbar
.
mnuitemCompactToolbar
.
on
(
'
toggle
'
,
_
.
bind
(
this
.
onChangeViewMode
,
this
));
$
(
'
#id-toolbar-menu-new-fontcolor
'
).
on
(
'
click
'
,
_
.
bind
(
this
.
onNewTextColor
,
this
));
$
(
'
#id-toolbar-menu-new-fontcolor
'
).
on
(
'
click
'
,
_
.
bind
(
this
.
onNewTextColor
,
this
));
$
(
'
#id-toolbar-menu-new-paracolor
'
).
on
(
'
click
'
,
_
.
bind
(
this
.
onNewBackColor
,
this
));
$
(
'
#id-toolbar-menu-new-paracolor
'
).
on
(
'
click
'
,
_
.
bind
(
this
.
onNewBackColor
,
this
));
$
(
'
#id-toolbar-menu-new-bordercolor
'
).
on
(
'
click
'
,
_
.
bind
(
this
.
onNewBorderColor
,
this
));
$
(
'
#id-toolbar-menu-new-bordercolor
'
).
on
(
'
click
'
,
_
.
bind
(
this
.
onNewBorderColor
,
this
));
...
@@ -1254,7 +1256,10 @@ define([
...
@@ -1254,7 +1256,10 @@ define([
}
}
if
(
me
.
toolbar
.
btnInsertText
.
rendered
)
if
(
me
.
toolbar
.
btnInsertText
.
rendered
)
SSE
.
getController
(
'
Toolbar
'
).
fillTextArt
();
me
.
fillTextArt
();
if
(
me
.
toolbar
.
btnTableTemplate
.
rendered
)
me
.
fillTableTemplates
();
},
100
);
},
100
);
}
}
...
@@ -1268,8 +1273,9 @@ define([
...
@@ -1268,8 +1273,9 @@ define([
},
},
fillTableTemplates
:
function
()
{
fillTableTemplates
:
function
()
{
var
me
=
this
;
if
(
!
this
.
toolbar
.
btnTableTemplate
.
rendered
)
return
;
var
me
=
this
;
function
createPicker
(
element
,
menu
)
{
function
createPicker
(
element
,
menu
)
{
var
picker
=
new
Common
.
UI
.
DataView
({
var
picker
=
new
Common
.
UI
.
DataView
({
el
:
element
,
el
:
element
,
...
...
apps/spreadsheeteditor/main/app/view/Toolbar.js
View file @
e0575a4d
This diff is collapsed.
Click to expand it.
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