Fix Bug 47922

This commit is contained in:
Julia Radzhabova 2021-02-02 23:12:39 +03:00
parent 0ebc7ee662
commit f2030faf02
2 changed files with 11 additions and 4 deletions

View file

@ -544,12 +544,15 @@ define([
if (me.appOptions.isEdit && me.appOptions.canLicense && !me.appOptions.isOffline && me.appOptions.canCoAuthoring) {
// Force ON fast co-authoring mode
me._state.fastCoauth = true;
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
} else if (!me.appOptions.isEdit && me.appOptions.isRestrictedEdit) {
me._state.fastCoauth = true;
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
me.api.asc_setAutoSaveGap(1);
} else {
me._state.fastCoauth = false;
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
}
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
/** coauthoring end **/
if (me.appOptions.isEdit) {

View file

@ -549,12 +549,16 @@ define([
if (this.appOptions.isEdit && this.appOptions.canLicense && !this.appOptions.isOffline && this.appOptions.canCoAuthoring) {
// Force ON fast co-authoring mode
me._state.fastCoauth = true;
this._state.fastCoauth = true;
this.api.asc_SetFastCollaborative(this._state.fastCoauth);
} else if (!this.appOptions.isEdit && this.appOptions.isRestrictedEdit) {
this._state.fastCoauth = true;
} else
this.api.asc_SetFastCollaborative(this._state.fastCoauth);
this.api.asc_setAutoSaveGap(1);
} else {
this._state.fastCoauth = false;
this.api.asc_SetFastCollaborative(this._state.fastCoauth);
this.api.asc_SetFastCollaborative(this._state.fastCoauth);
}
/** coauthoring end **/
me.api.asc_registerCallback('asc_onStartAction', _.bind(me.onLongActionBegin, me));