Commit d4ef78cf authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Перенес инициализацию для совместного редактирования.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56706 954022d7-b5bf-4e40-9824-e11837661b57
parent d7f56577
......@@ -1476,17 +1476,6 @@ asc_docs_api.prototype._coAuthoringInit = function()
var t = this;
this.CoAuthoringApi.onParticipantsChanged = function (e, CountEditUsers) {
t.asc_fireCallback("asc_onParticipantsChanged", e, CountEditUsers);
if ( 1 >= CountEditUsers )
{
CollaborativeEditing.End_CollaborationEditing();
editor.asc_setDrawCollaborationMarks(false);
}
else
{
CollaborativeEditing.Start_CollaborationEditing();
editor.asc_setDrawCollaborationMarks(true);
}
};
this.CoAuthoringApi.onAuthParticipantsChanged = function (e, count) { t.asc_fireCallback("asc_onAuthParticipantsChanged", e, count); };
this.CoAuthoringApi.onMessage = function (e, count) { t.asc_fireCallback("asc_onCoAuthoringChatReceiveMessage", e); };
......@@ -1593,9 +1582,10 @@ asc_docs_api.prototype._coAuthoringInit = function()
g_oIdCounter.Set_UserId("" + e);
};
this.CoAuthoringApi.onStartCoAuthoring = function (isStartEvent) {
CollaborativeEditing.Start_CollaborationEditing();
t.asc_setDrawCollaborationMarks(true);
if (t.ParcedDocument) {
CollaborativeEditing.Start_CollaborationEditing();
t.asc_setDrawCollaborationMarks(true);
t.WordControl.m_oLogicDocument.DrawingDocument.Start_CollaborationEditing();
if (!isStartEvent) {
......@@ -1616,7 +1606,8 @@ asc_docs_api.prototype._coAuthoringInit = function()
}
};
this.CoAuthoringApi.onEndCoAuthoring = function (isStartEvent) {
// ToDo add code
CollaborativeEditing.End_CollaborationEditing();
editor.asc_setDrawCollaborationMarks(false);
};
/**
* Event об отсоединении от сервера
......
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