Fix comment mode
This commit is contained in:
parent
db09848a3b
commit
810588e2e6
|
@ -664,7 +664,7 @@ define([
|
|||
action = this.stackLongActions.get({type: Asc.c_oAscAsyncActionType.BlockInteraction});
|
||||
action ? this.setLongActionView(action) : this.loadMask && this.loadMask.hide();
|
||||
|
||||
if ((id==Asc.c_oAscAsyncAction['Save'] || id==Asc.c_oAscAsyncAction['ForceSaveButton']) && (!this._state.fastCoauth || this._state.usersCount<2 ||
|
||||
if (this.appOptions.isEdit && (id==Asc.c_oAscAsyncAction['Save'] || id==Asc.c_oAscAsyncAction['ForceSaveButton']) && (!this._state.fastCoauth || this._state.usersCount<2 ||
|
||||
this.getApplication().getController('Common.Controllers.ReviewChanges').isPreviewChangesMode()))
|
||||
this.synchronizeChanges();
|
||||
|
||||
|
|
|
@ -465,7 +465,7 @@ define([
|
|||
action = this.stackLongActions.get({type: Asc.c_oAscAsyncActionType.BlockInteraction});
|
||||
action ? this.setLongActionView(action) : this.loadMask && this.loadMask.hide();
|
||||
|
||||
if ((id==Asc.c_oAscAsyncAction['Save'] || id==Asc.c_oAscAsyncAction['ForceSaveButton']) && (!this._state.fastCoauth || this._state.usersCount<2))
|
||||
if (this.appOptions.isEdit && (id==Asc.c_oAscAsyncAction['Save'] || id==Asc.c_oAscAsyncAction['ForceSaveButton']) && (!this._state.fastCoauth || this._state.usersCount<2))
|
||||
this.synchronizeChanges();
|
||||
|
||||
if (type == Asc.c_oAscAsyncActionType.BlockInteraction && !((id == Asc.c_oAscAsyncAction['LoadDocumentFonts'] || id == Asc.c_oAscAsyncAction['ApplyChanges']) && (this.dontCloseDummyComment || this.dontCloseChat || this.isModalShowed || this.inFormControl))) {
|
||||
|
|
|
@ -1686,7 +1686,7 @@ define([
|
|||
onApiZoomChange: function(zf, type){},
|
||||
|
||||
onApiSheetChanged: function() {
|
||||
if (!this.toolbar.mode.isEdit) return;
|
||||
if (!this.toolbar.mode || !this.toolbar.mode.isEdit) return;
|
||||
|
||||
var props = this.api.asc_getPageOptions(this.api.asc_getActiveWorksheetIndex()),
|
||||
opt = props.asc_getPageSetup();
|
||||
|
|
Loading…
Reference in a new issue