Fix Bug 39254
This commit is contained in:
parent
975f66a66a
commit
0525597e79
|
@ -933,7 +933,7 @@ define([
|
|||
var toolbar = this.toolbar;
|
||||
if (this.api) {
|
||||
var isModified = this.api.asc_isDocumentCanSave();
|
||||
var isSyncButton = toolbar.btnCollabChanges.$icon.hasClass('btn-synch');
|
||||
var isSyncButton = toolbar.btnCollabChanges && toolbar.btnCollabChanges.$icon.hasClass('btn-synch');
|
||||
if (!isModified && !isSyncButton && !toolbar.mode.forcesave)
|
||||
return;
|
||||
|
||||
|
|
|
@ -889,7 +889,7 @@ define([
|
|||
var toolbar = this.toolbar;
|
||||
if (this.api && this.api.asc_isDocumentCanSave) {
|
||||
var isModified = this.api.asc_isDocumentCanSave();
|
||||
var isSyncButton = this.toolbar.btnCollabChanges.$icon.hasClass('btn-synch');
|
||||
var isSyncButton = this.toolbar.btnCollabChanges && this.toolbar.btnCollabChanges.$icon.hasClass('btn-synch');
|
||||
if (!isModified && !isSyncButton && !this.toolbar.mode.forcesave)
|
||||
return;
|
||||
|
||||
|
|
|
@ -407,7 +407,7 @@ define([
|
|||
onSave: function(e) {
|
||||
if (this.api) {
|
||||
var isModified = this.api.asc_isDocumentCanSave();
|
||||
var isSyncButton = this.toolbar.btnCollabChanges.$icon.hasClass('btn-synch');
|
||||
var isSyncButton = this.toolbar.btnCollabChanges && this.toolbar.btnCollabChanges.$icon.hasClass('btn-synch');
|
||||
if (!isModified && !isSyncButton && !this.toolbar.mode.forcesave)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue