Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
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
sdkjs
Commits
f81942bd
Commit
f81942bd
authored
Oct 05, 2017
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 35971
close cell editor if user can unlock document
parent
0f8631d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
cell/api.js
cell/api.js
+10
-4
No files found.
cell/api.js
View file @
f81942bd
...
...
@@ -3203,13 +3203,19 @@ var editor;
spreadsheet_api
.
prototype
.
_autoSave
=
function
()
{
if
(
!
this
.
DocumentLoadComplete
||
(
!
this
.
canUnlockDocument
&&
0
===
this
.
autoSaveGap
&&
(
!
this
.
collaborativeEditing
.
getFast
()
||
!
this
.
collaborativeEditing
.
getCollaborativeEditing
()))
||
this
.
asc_getCellEditMode
()
||
this
.
asc_getIsTrackShape
()
||
this
.
isOpenedChartFrame
||
!
History
.
IsEndTransaction
()
||
!
this
.
canSave
)
{
this
.
asc_getIsTrackShape
()
||
this
.
isOpenedChartFrame
||
!
History
.
IsEndTransaction
()
||
!
this
.
canSave
)
{
return
;
}
// Check edit mode after unlock document http://bugzilla.onlyoffice.com/show_bug.cgi?id=35971
if
(
this
.
canUnlockDocument
)
{
this
.
asc_Save
(
true
);
this
.
lastSaveTime
=
new
Date
();
// Close cell edit without errors (isIdle = true)
this
.
asc_Save
(
true
,
false
,
true
);
return
;
}
if
(
this
.
asc_getCellEditMode
())
{
return
;
}
...
...
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