[SSE][PE] Bug with forcesave.
This commit is contained in:
parent
6ca3ad0134
commit
3c6ab30988
|
|
@ -872,7 +872,7 @@ define([
|
|||
if (this.api && this.api.asc_isDocumentCanSave) {
|
||||
var isModified = this.api.asc_isDocumentCanSave();
|
||||
var isSyncButton = $('.btn-icon', this.toolbar.btnSave.cmpEl).hasClass('btn-synch');
|
||||
if (!isModified && !isSyncButton)
|
||||
if (!isModified && !isSyncButton && !this.toolbar.mode.forcesave)
|
||||
return;
|
||||
|
||||
this.api.asc_Save();
|
||||
|
|
|
|||
|
|
@ -307,7 +307,7 @@ define([
|
|||
if (this.api) {
|
||||
var isModified = this.api.asc_isDocumentCanSave();
|
||||
var isSyncButton = $('.btn-icon', this.toolbar.btnSave.cmpEl).hasClass('btn-synch');
|
||||
if (!isModified && !isSyncButton)
|
||||
if (!isModified && !isSyncButton && !this.toolbar.mode.forcesave)
|
||||
return;
|
||||
|
||||
this.api.asc_Save();
|
||||
|
|
|
|||
Loading…
Reference in a new issue