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
58b7c3f9
Commit
58b7c3f9
authored
Aug 16, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Fix Bug 32955.
parent
84cf8d18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
apps/spreadsheeteditor/main/app/controller/CellEditor.js
apps/spreadsheeteditor/main/app/controller/CellEditor.js
+5
-12
apps/spreadsheeteditor/main/app/view/CellEditor.js
apps/spreadsheeteditor/main/app/view/CellEditor.js
+6
-0
No files found.
apps/spreadsheeteditor/main/app/controller/CellEditor.js
View file @
58b7c3f9
...
...
@@ -117,11 +117,13 @@ define([
},
onApiEditCell
:
function
(
state
)
{
if
(
state
==
Asc
.
c_oAscCellEditorState
.
editStart
)
if
(
state
==
Asc
.
c_oAscCellEditorState
.
editStart
)
{
this
.
api
.
isCellEdited
=
true
;
else
if
(
state
==
Asc
.
c_oAscCellEditorState
.
editEnd
)
{
this
.
editor
.
cellNameDisabled
(
true
);
}
else
if
(
state
==
Asc
.
c_oAscCellEditorState
.
editEnd
)
{
this
.
api
.
isCellEdited
=
false
;
this
.
api
.
isCEditorFocused
=
false
;
this
.
editor
.
cellNameDisabled
(
false
);
}
},
...
...
@@ -144,16 +146,7 @@ define([
},
onCellsRange
:
function
(
status
)
{
var
isRangeSelection
=
(
status
!=
Asc
.
c_oAscSelectionDialogType
.
None
);
if
(
isRangeSelection
)
{
this
.
editor
.
$cellname
.
attr
(
'
disabled
'
,
'
disabled
'
);
this
.
editor
.
$btnfunc
[
'
addClass
'
](
'
disabled
'
);
}
else
{
this
.
editor
.
$cellname
.
removeAttr
(
'
disabled
'
);
this
.
editor
.
$btnfunc
[
'
removeClass
'
](
'
disabled
'
);
}
this
.
editor
.
btnNamedRanges
.
setDisabled
(
isRangeSelection
);
this
.
editor
.
cellNameDisabled
(
status
!=
Asc
.
c_oAscSelectionDialogType
.
None
);
},
onLayoutResize
:
function
(
o
,
r
)
{
...
...
apps/spreadsheeteditor/main/app/view/CellEditor.js
View file @
58b7c3f9
...
...
@@ -100,6 +100,12 @@ define([
}
},
cellNameDisabled
:
function
(
disabled
){
(
disabled
)
?
this
.
$cellname
.
attr
(
'
disabled
'
,
'
disabled
'
)
:
this
.
$cellname
.
removeAttr
(
'
disabled
'
);
this
.
$btnfunc
.
toggleClass
(
'
disabled
'
,
disabled
);
this
.
btnNamedRanges
.
setDisabled
(
disabled
);
},
tipFormula
:
'
Insert Function
'
,
textManager
:
'
Manager
'
},
SSE
.
Views
.
CellEditor
||
{}));
...
...
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