Commit ee68bd09 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

загрузка данных при открытии и сразу Apply_Changes

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51968 954022d7-b5bf-4e40-9824-e11837661b57
parent 9a08ec30
......@@ -541,6 +541,9 @@ function asc_docs_api(name)
this.isShowTableEmptyLine = true;
this.isShowTableEmptyLineAttack = false;
this.isApplyChangesOnOpen = false;
this.isApplyChangesOnOpenEnabled = true;
// CoAuthoring and Chat
this.User = undefined;
this.CoAuthoringApi = new CDocsCoApi();
......@@ -6156,8 +6159,17 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
{
var Document = this.WordControl.m_oLogicDocument;
if (this.isApplyChangesOnOpenEnabled)
{
this.isApplyChangesOnOpenEnabled = false;
if (CollaborativeEditing.m_bUse == true)
{
this.isApplyChangesOnOpen = true;
CollaborativeEditing.Apply_Changes();
CollaborativeEditing.Release_Locks();
return;
}
}
//Recalculate HdrFtr
if(Document.HdrFtr && Document.HdrFtr.Content && Document.HdrFtr.Content.length > 0 && Document.HdrFtr.Content[0].Header)
......@@ -6404,6 +6416,12 @@ asc_docs_api.prototype.SyncLoadImages_callback = function()
asc_docs_api.prototype.pre_SaveCallback = function()
{
CollaborativeEditing.OnEnd_Load_Objects();
if (this.isApplyChangesOnOpen)
{
this.isApplyChangesOnOpen = false;
this.OpenDocumentEndCallback();
}
}
asc_docs_api.prototype.initEvents2MobileAdvances = function()
......
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