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
90d437a9
Commit
90d437a9
authored
Feb 10, 2017
by
Maxim Kadushkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE mobile] debug locked cell's state
parent
7ab00a31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
15 deletions
+19
-15
apps/spreadsheeteditor/mobile/app/controller/Toolbar.js
apps/spreadsheeteditor/mobile/app/controller/Toolbar.js
+19
-15
No files found.
apps/spreadsheeteditor/mobile/app/controller/Toolbar.js
View file @
90d437a9
...
...
@@ -146,10 +146,12 @@ define([
onApiWorkbookLocked
:
function
(
l
)
{
locked
.
book
=
l
;
this
.
onApiSelectionChanged
();
},
onApiWorksheetLocked
:
function
(
l
)
{
locked
.
sheet
=
l
;
this
.
onApiSelectionChanged
();
},
onApiActiveSheetChanged
:
function
(
index
)
{
...
...
@@ -165,23 +167,25 @@ define([
},
onApiSelectionChanged
:
function
(
info
)
{
var
islocked
=
locked
.
book
||
locked
.
sheet
;
if
(
!
islocked
)
{
switch
(
info
.
asc_getFlags
().
asc_getSelectionType
())
{
case
Asc
.
c_oAscSelectionType
.
RangeCells
:
islocked
=
info
.
asc_getLocked
();
break
;
case
Asc
.
c_oAscSelectionType
.
RangeChar
t
:
var
objects
=
this
.
api
.
asc_getGraphicObjectProps
();
for
(
var
i
in
objects
)
{
if
(
objects
[
i
].
asc_getObjectType
()
==
Asc
.
c_oAscTypeSelectElement
.
Image
)
{
if
((
islocked
=
objects
[
i
].
asc_getObjectValue
().
asc_getLocked
()))
break
;
}
if
(
!
info
)
info
=
this
.
api
.
asc_getCellInfo
()
;
var
islocked
=
false
;
switch
(
info
.
asc_getFlags
().
asc_getSelectionType
())
{
case
Asc
.
c_oAscSelectionType
.
RangeChart
:
case
Asc
.
c_oAscSelectionType
.
RangeImage
:
case
Asc
.
c_oAscSelectionType
.
RangeShape
:
case
Asc
.
c_oAscSelectionType
.
RangeChartTex
t
:
case
Asc
.
c_oAscSelectionType
.
RangeShapeText
:
var
objects
=
this
.
api
.
asc_getGraphicObjectProps
();
for
(
var
i
in
objects
)
{
if
(
objects
[
i
].
asc_getObjectType
()
==
Asc
.
c_oAscTypeSelectElement
.
Image
)
{
if
((
islocked
=
objects
[
i
].
asc_getObjectValue
().
asc_getLocked
()))
break
;
}
break
;
}
break
;
default
:
islocked
=
info
.
asc_getLocked
();
}
this
.
getView
(
'
Toolbar
'
).
disableControl
([
'
add
'
,
'
edit
'
],
islocked
);
...
...
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