Set fast co-editing when commenting in view mode.
This commit is contained in:
parent
63cc0288ba
commit
08186157c6
|
@ -795,6 +795,9 @@ define([
|
||||||
value == 'none' ? Asc.c_oAscCollaborativeMarksShowType.None : Asc.c_oAscCollaborativeMarksShowType.LastChanges);
|
value == 'none' ? Asc.c_oAscCollaborativeMarksShowType.None : Asc.c_oAscCollaborativeMarksShowType.LastChanges);
|
||||||
else
|
else
|
||||||
me.api.SetCollaborativeMarksShowType(me._state.fastCoauth ? Asc.c_oAscCollaborativeMarksShowType.None : Asc.c_oAscCollaborativeMarksShowType.LastChanges);
|
me.api.SetCollaborativeMarksShowType(me._state.fastCoauth ? Asc.c_oAscCollaborativeMarksShowType.None : Asc.c_oAscCollaborativeMarksShowType.LastChanges);
|
||||||
|
} else if (!me.appOptions.isEdit && me.appOptions.canComments) {
|
||||||
|
me._state.fastCoauth = true;
|
||||||
|
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
|
||||||
} else {
|
} else {
|
||||||
me._state.fastCoauth = false;
|
me._state.fastCoauth = false;
|
||||||
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
|
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
|
||||||
|
|
|
@ -580,7 +580,7 @@ define([
|
||||||
}
|
}
|
||||||
me._state.fastCoauth = (value===null || parseInt(value) == 1);
|
me._state.fastCoauth = (value===null || parseInt(value) == 1);
|
||||||
} else
|
} else
|
||||||
me._state.fastCoauth = false;
|
me._state.fastCoauth = (!me.appOptions.isEdit && me.appOptions.canComments);
|
||||||
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
|
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
|
||||||
/** coauthoring end **/
|
/** coauthoring end **/
|
||||||
|
|
||||||
|
|
|
@ -558,7 +558,7 @@ define([
|
||||||
}
|
}
|
||||||
this._state.fastCoauth = (value===null || parseInt(value) == 1);
|
this._state.fastCoauth = (value===null || parseInt(value) == 1);
|
||||||
} else
|
} else
|
||||||
this._state.fastCoauth = false;
|
this._state.fastCoauth = (!this.appOptions.isEdit && this.appOptions.canComments);
|
||||||
this.api.asc_SetFastCollaborative(this._state.fastCoauth);
|
this.api.asc_SetFastCollaborative(this._state.fastCoauth);
|
||||||
/** coauthoring end **/
|
/** coauthoring end **/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue