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

StartCoAuthoring после того, как документ распарсился

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50148 954022d7-b5bf-4e40-9824-e11837661b57
parent af6de96e
......@@ -83,6 +83,7 @@ function asc_docs_api(name)
this.ServerImagesWaitComplete = false;
this.ParcedDocument = false;
this.isStartCoAuthoringOnEndLoad = false; // Подсоединились раньше, чем документ загрузился
this.DocumentOrientation = orientation_Portrait ? true : false;
......@@ -451,16 +452,16 @@ asc_docs_api.prototype._coAuthoringInit = function () {
t.asyncServerIdEndLoaded ();
};
this.CoAuthoringApi.onStartCoAuthoring = function (isStartEvent) {
if (t.ParcedDocument) {
CollaborativeEditing.Start_CollaborationEditing();
editor.WordControl.m_oLogicDocument.DrawingDocument.Start_CollaborationEditing();
if ( true != History.Is_Clear() )
{
if (true != History.Is_Clear()) {
CollaborativeEditing.Apply_Changes();
CollaborativeEditing.Send_Changes();
}
} else
t.isStartCoAuthoringOnEndLoad = true;
};
/**
* Event об отсоединении от сервера
......@@ -922,6 +923,10 @@ asc_docs_api.prototype.OpenDocument2 = function(url, gObject)
this.FontLoader.LoadDocumentFonts(this.WordControl.m_oLogicDocument.Fonts, false);
this.ParcedDocument = true;
if (this.isStartCoAuthoringOnEndLoad) {
this.CoAuthoringApi.onStartCoAuthoring(true);
this.isStartCoAuthoringOnEndLoad = false;
}
if (window.USER_AGENT_SAFARI_MACOS)
setInterval(SafariIntervalFocus, 10);
......
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