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
c87c80bf
Commit
c87c80bf
authored
Nov 01, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Fix Bug 33304, fix Bug 33300.
parent
a4a2ec00
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
apps/spreadsheeteditor/main/app/controller/Toolbar.js
apps/spreadsheeteditor/main/app/controller/Toolbar.js
+7
-3
apps/spreadsheeteditor/main/app/view/Toolbar.js
apps/spreadsheeteditor/main/app/view/Toolbar.js
+4
-3
No files found.
apps/spreadsheeteditor/main/app/controller/Toolbar.js
View file @
c87c80bf
...
...
@@ -99,7 +99,8 @@ define([
tablestylename
:
undefined
,
tablename
:
undefined
,
namedrange_locked
:
false
,
fontsize
:
undefined
fontsize
:
undefined
,
multiselect
:
false
};
var
checkInsertAutoshape
=
function
(
e
,
action
)
{
...
...
@@ -1172,7 +1173,7 @@ define([
Common
.
util
.
Shortcuts
.
delegateShortcuts
({
shortcuts
:
{
'
command+l,ctrl+l
'
:
function
(
e
)
{
if
(
me
.
editMode
)
{
if
(
me
.
editMode
&&
!
me
.
_state
.
multiselect
)
{
if
(
!
me
.
api
.
asc_getCellInfo
().
asc_getFormatTableInfo
())
me
.
_setTableFormat
(
me
.
toolbar
.
mnuTableTemplatePicker
.
store
.
at
(
23
).
get
(
'
name
'
));
}
...
...
@@ -1197,7 +1198,7 @@ define([
e
.
stopPropagation
();
},
'
command+k,ctrl+k
'
:
function
(
e
)
{
if
(
me
.
editMode
&&
!
me
.
toolbar
.
mode
.
isEditMailMerge
&&
!
me
.
toolbar
.
mode
.
isEditDiagram
&&
!
me
.
api
.
isCellEdited
)
if
(
me
.
editMode
&&
!
me
.
toolbar
.
mode
.
isEditMailMerge
&&
!
me
.
toolbar
.
mode
.
isEditDiagram
&&
!
me
.
api
.
isCellEdited
&&
!
me
.
_state
.
multiselect
)
me
.
onHyperlink
();
e
.
preventDefault
();
}
...
...
@@ -1808,6 +1809,9 @@ define([
need_disable
=
this
.
_state
.
controlsdisabled
.
filters
||
!
filterInfo
||
(
filterInfo
.
asc_getIsApplyAutoFilter
()
!==
true
);
toolbar
.
lockToolbar
(
SSE
.
enumLock
.
ruleDelFilter
,
need_disable
,
{
array
:[
toolbar
.
btnClearAutofilter
,
toolbar
.
mnuitemClearFilter
]});
this
.
_state
.
multiselect
=
info
.
asc_getFlags
().
asc_getMultiselect
();
toolbar
.
lockToolbar
(
SSE
.
enumLock
.
multiselect
,
this
.
_state
.
multiselect
,
{
array
:
[
toolbar
.
btnTableTemplate
,
toolbar
.
btnInsertHyperlink
]});
}
fontparam
=
toolbar
.
numFormatTypes
[
info
.
asc_getNumFormatType
()];
...
...
apps/spreadsheeteditor/main/app/view/Toolbar.js
View file @
c87c80bf
...
...
@@ -75,7 +75,8 @@ define([
ruleFilter
:
'
rule-filter
'
,
ruleDelFilter
:
'
rule-clear-filter
'
,
menuFileOpen
:
'
menu-file-open
'
,
cantPrint
:
'
cant-print
'
cantPrint
:
'
cant-print
'
,
multiselect
:
'
is-multiselect
'
};
SSE
.
Views
.
Toolbar
=
Backbone
.
View
.
extend
(
_
.
extend
({
...
...
@@ -495,7 +496,7 @@ define([
id
:
'
id-toolbar-btn-inserthyperlink
'
,
cls
:
'
btn-toolbar
'
,
iconCls
:
'
btn-inserthyperlink
'
,
lock
:
[
_set
.
editCell
,
_set
.
selChart
,
_set
.
selChartText
,
_set
.
selImage
,
_set
.
selShape
,
_set
.
lostConnect
,
_set
.
coAuth
]
lock
:
[
_set
.
editCell
,
_set
.
selChart
,
_set
.
selChartText
,
_set
.
selImage
,
_set
.
selShape
,
_set
.
multiselect
,
_set
.
lostConnect
,
_set
.
coAuth
]
});
me
.
btnInsertChart
=
new
Common
.
UI
.
Button
({
...
...
@@ -596,7 +597,7 @@ define([
id
:
'
id-toolbar-btn-ttempl
'
,
cls
:
'
btn-toolbar
'
,
iconCls
:
'
btn-ttempl
'
,
lock
:
[
_set
.
editCell
,
_set
.
selChart
,
_set
.
selChartText
,
_set
.
selShape
,
_set
.
selShapeText
,
_set
.
selImage
,
_set
.
lostConnect
,
_set
.
coAuth
,
_set
.
ruleFilter
],
lock
:
[
_set
.
editCell
,
_set
.
selChart
,
_set
.
selChartText
,
_set
.
selShape
,
_set
.
selShapeText
,
_set
.
selImage
,
_set
.
lostConnect
,
_set
.
coAuth
,
_set
.
ruleFilter
,
_set
.
multiselect
],
menu
:
new
Common
.
UI
.
Menu
({
items
:
[
{
template
:
_
.
template
(
'
<div id="id-toolbar-menu-table-templates" style="width: 288px; height: 300px; margin: 0px 4px;"></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