Commit 4178530d authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug 34413

parent 894aed89
...@@ -1196,6 +1196,9 @@ var editor; ...@@ -1196,6 +1196,9 @@ var editor;
} }
}; };
this.CoAuthoringApi.onStartCoAuthoring = function (isStartEvent) { this.CoAuthoringApi.onStartCoAuthoring = function (isStartEvent) {
if (t.isViewMode) {
return;
}
// На старте не нужно ничего делать // На старте не нужно ничего делать
if (isStartEvent) { if (isStartEvent) {
t.startCollaborationEditing(); t.startCollaborationEditing();
......
...@@ -961,6 +961,9 @@ ...@@ -961,6 +961,9 @@
}; };
this.CoAuthoringApi.onStartCoAuthoring = function(isStartEvent) this.CoAuthoringApi.onStartCoAuthoring = function(isStartEvent)
{ {
if (t.isViewMode) {
return;
}
if (t.ParcedDocument) { if (t.ParcedDocument) {
if (isStartEvent) { if (isStartEvent) {
AscCommon.CollaborativeEditing.Start_CollaborationEditing(); AscCommon.CollaborativeEditing.Start_CollaborationEditing();
......
...@@ -1184,6 +1184,9 @@ background-repeat: no-repeat;\ ...@@ -1184,6 +1184,9 @@ background-repeat: no-repeat;\
}; };
this.CoAuthoringApi.onStartCoAuthoring = function(isStartEvent) this.CoAuthoringApi.onStartCoAuthoring = function(isStartEvent)
{ {
if (t.isViewMode) {
return;
}
if (t.ParcedDocument) { if (t.ParcedDocument) {
if (isStartEvent) { if (isStartEvent) {
AscCommon.CollaborativeEditing.Start_CollaborationEditing(); AscCommon.CollaborativeEditing.Start_CollaborationEditing();
......
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