Commit 311f9d7c authored by Julia Radzhabova's avatar Julia Radzhabova

Set fast co-editing when commenting in view mode.

parent 0bec1e4a
......@@ -809,6 +809,9 @@ define([
value == 'none' ? Asc.c_oAscCollaborativeMarksShowType.None : Asc.c_oAscCollaborativeMarksShowType.LastChanges);
else
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 {
me._state.fastCoauth = false;
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
......
......@@ -588,7 +588,7 @@ define([
}
me._state.fastCoauth = (value===null || parseInt(value) == 1);
} else
me._state.fastCoauth = false;
me._state.fastCoauth = (!me.appOptions.isEdit && me.appOptions.canComments);
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
/** coauthoring end **/
......
......@@ -557,7 +557,7 @@ define([
}
this._state.fastCoauth = (value===null || parseInt(value) == 1);
} else
this._state.fastCoauth = false;
this._state.fastCoauth = (!this.appOptions.isEdit && this.appOptions.canComments);
this.api.asc_SetFastCollaborative(this._state.fastCoauth);
/** coauthoring end **/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment