Fix Bug 40126
This commit is contained in:
parent
993fafadb6
commit
63195f269b
|
@ -1493,7 +1493,7 @@ define([
|
||||||
onBeforeUnload: function() {
|
onBeforeUnload: function() {
|
||||||
Common.localStorage.save();
|
Common.localStorage.save();
|
||||||
|
|
||||||
var isEdit = this.permissions.edit !== false && this.editorConfig.mode !== 'view' && this.editorConfig.mode !== 'editdiagram';
|
var isEdit = this.permissions.edit !== false && this.editorConfig.mode !== 'view' && this.editorConfig.mode !== 'editdiagram' && this.editorConfig.mode !== 'editmerge';
|
||||||
if (isEdit && this.api.asc_isDocumentModified()) {
|
if (isEdit && this.api.asc_isDocumentModified()) {
|
||||||
var me = this;
|
var me = this;
|
||||||
this.api.asc_stopSaving();
|
this.api.asc_stopSaving();
|
||||||
|
|
Loading…
Reference in a new issue