Fix Bug 47922
This commit is contained in:
parent
0ebc7ee662
commit
f2030faf02
|
@ -544,12 +544,15 @@ define([
|
||||||
if (me.appOptions.isEdit && me.appOptions.canLicense && !me.appOptions.isOffline && me.appOptions.canCoAuthoring) {
|
if (me.appOptions.isEdit && me.appOptions.canLicense && !me.appOptions.isOffline && me.appOptions.canCoAuthoring) {
|
||||||
// Force ON fast co-authoring mode
|
// Force ON fast co-authoring mode
|
||||||
me._state.fastCoauth = true;
|
me._state.fastCoauth = true;
|
||||||
|
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
|
||||||
} else if (!me.appOptions.isEdit && me.appOptions.isRestrictedEdit) {
|
} else if (!me.appOptions.isEdit && me.appOptions.isRestrictedEdit) {
|
||||||
me._state.fastCoauth = true;
|
me._state.fastCoauth = true;
|
||||||
|
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
|
||||||
|
me.api.asc_setAutoSaveGap(1);
|
||||||
} else {
|
} else {
|
||||||
me._state.fastCoauth = false;
|
me._state.fastCoauth = false;
|
||||||
|
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
|
||||||
}
|
}
|
||||||
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
|
|
||||||
/** coauthoring end **/
|
/** coauthoring end **/
|
||||||
|
|
||||||
if (me.appOptions.isEdit) {
|
if (me.appOptions.isEdit) {
|
||||||
|
|
|
@ -549,12 +549,16 @@ define([
|
||||||
|
|
||||||
if (this.appOptions.isEdit && this.appOptions.canLicense && !this.appOptions.isOffline && this.appOptions.canCoAuthoring) {
|
if (this.appOptions.isEdit && this.appOptions.canLicense && !this.appOptions.isOffline && this.appOptions.canCoAuthoring) {
|
||||||
// Force ON fast co-authoring mode
|
// 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) {
|
} else if (!this.appOptions.isEdit && this.appOptions.isRestrictedEdit) {
|
||||||
this._state.fastCoauth = true;
|
this._state.fastCoauth = true;
|
||||||
} else
|
this.api.asc_SetFastCollaborative(this._state.fastCoauth);
|
||||||
|
this.api.asc_setAutoSaveGap(1);
|
||||||
|
} else {
|
||||||
this._state.fastCoauth = false;
|
this._state.fastCoauth = false;
|
||||||
this.api.asc_SetFastCollaborative(this._state.fastCoauth);
|
this.api.asc_SetFastCollaborative(this._state.fastCoauth);
|
||||||
|
}
|
||||||
/** coauthoring end **/
|
/** coauthoring end **/
|
||||||
|
|
||||||
me.api.asc_registerCallback('asc_onStartAction', _.bind(me.onLongActionBegin, me));
|
me.api.asc_registerCallback('asc_onStartAction', _.bind(me.onLongActionBegin, me));
|
||||||
|
|
Loading…
Reference in a new issue