[DE][PE] Fix Bug 37679
This commit is contained in:
parent
bdb770e68e
commit
da5edeef42
|
@ -625,7 +625,7 @@ define([
|
||||||
if (this.api && !toolbarView._state.previewmode) {
|
if (this.api && !toolbarView._state.previewmode) {
|
||||||
var cansave = this.api.asc_isDocumentCanSave(),
|
var cansave = this.api.asc_isDocumentCanSave(),
|
||||||
forcesave = this.appOptions.forcesave,
|
forcesave = this.appOptions.forcesave,
|
||||||
isSyncButton = toolbarView.btnCollabChanges.$icon.hasClass('btn-synch'),
|
isSyncButton = (toolbarView.btnCollabChanges.rendered) ? toolbarView.btnCollabChanges.$icon.hasClass('btn-synch') : false,
|
||||||
isDisabled = !cansave && !isSyncButton && !forcesave || this._state.isDisconnected || this._state.fastCoauth && this._state.usersCount>1 && !forcesave;
|
isDisabled = !cansave && !isSyncButton && !forcesave || this._state.isDisconnected || this._state.fastCoauth && this._state.usersCount>1 && !forcesave;
|
||||||
toolbarView.btnSave.setDisabled(isDisabled);
|
toolbarView.btnSave.setDisabled(isDisabled);
|
||||||
}
|
}
|
||||||
|
|
|
@ -426,7 +426,7 @@ define([
|
||||||
if (this.api && this.api.asc_isDocumentCanSave) {
|
if (this.api && this.api.asc_isDocumentCanSave) {
|
||||||
var cansave = this.api.asc_isDocumentCanSave(),
|
var cansave = this.api.asc_isDocumentCanSave(),
|
||||||
forcesave = this.appOptions.forcesave,
|
forcesave = this.appOptions.forcesave,
|
||||||
isSyncButton = toolbarView.btnCollabChanges.$icon.hasClass('btn-synch'),
|
isSyncButton = (toolbarView.btnCollabChanges.rendered) ? toolbarView.btnCollabChanges.$icon.hasClass('btn-synch') : false,
|
||||||
isDisabled = !cansave && !isSyncButton && !forcesave || this._state.isDisconnected || this._state.fastCoauth && this._state.usersCount>1 && !forcesave;
|
isDisabled = !cansave && !isSyncButton && !forcesave || this._state.isDisconnected || this._state.fastCoauth && this._state.usersCount>1 && !forcesave;
|
||||||
toolbarView.btnSave.setDisabled(isDisabled);
|
toolbarView.btnSave.setDisabled(isDisabled);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue