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

Bug 24858 + не делаем автосейв, если на экране текстбокс для иероглифов

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56811 954022d7-b5bf-4e40-9824-e11837661b57
parent d4955ad5
...@@ -3553,7 +3553,7 @@ function CEditorPage(api) ...@@ -3553,7 +3553,7 @@ function CEditorPage(api)
oWordControl.m_oDrawingDocument.CheckTrackTable(); oWordControl.m_oDrawingDocument.CheckTrackTable();
} }
if (oWordControl.m_oApi.autoSaveGap != 0) if (oWordControl.m_oApi.autoSaveGap != 0 && !oWordControl.m_oApi.isViewMode && !oWordControl.TextBoxInputFocus)
{ {
var _curTime = new Date().getTime(); var _curTime = new Date().getTime();
if (-1 == oWordControl.m_nLastAutosaveTime) if (-1 == oWordControl.m_nLastAutosaveTime)
......
...@@ -612,6 +612,7 @@ CDocument.prototype = ...@@ -612,6 +612,7 @@ CDocument.prototype =
On_EndLoad : function() On_EndLoad : function()
{ {
this.Update_SectionsInfo(); this.Update_SectionsInfo();
this.DrawingObjects.addToZIndexManagerAfterOpen();
}, },
LoadEmptyDocument : function() LoadEmptyDocument : function()
......
...@@ -6443,6 +6443,12 @@ asc_docs_api.prototype.asyncImagesDocumentEndLoaded = function() ...@@ -6443,6 +6443,12 @@ asc_docs_api.prototype.asyncImagesDocumentEndLoaded = function()
this.isSaveFonts_Images = false; this.isSaveFonts_Images = false;
this.saveImageMap = null; this.saveImageMap = null;
this.pre_SaveCallback(); this.pre_SaveCallback();
if (this.bInit_word_control === false)
{
this.bInit_word_control = true;
this.asc_fireCallback("asc_onDocumentContentReady");
}
} }
else if (this.isLoadImagesCustom) else if (this.isLoadImagesCustom)
{ {
...@@ -6493,10 +6499,11 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function() ...@@ -6493,10 +6499,11 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
//Recalculate для Document //Recalculate для Document
Document.CurPos.ContentPos = 0; Document.CurPos.ContentPos = 0;
History.RecalcData_Add({Type: historyrecalctype_Drawing, All: true}); History.RecalcData_Add({Type: historyrecalctype_Drawing, All: true});
Document.DrawingObjects.addToZIndexManagerAfterOpen();
if (!this.isOnlyReaderMode) if (!this.isOnlyReaderMode)
{ {
Document.Recalculate(); if (false === this.isSaveFonts_Images)
Document.Recalculate();
this.WordControl.m_oDrawingDocument.TargetStart(); this.WordControl.m_oDrawingDocument.TargetStart();
} }
else else
...@@ -6513,8 +6520,11 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function() ...@@ -6513,8 +6520,11 @@ asc_docs_api.prototype.OpenDocumentEndCallback = function()
this.WordControl.m_oLogicDocument.Document_UpdateSelectionState(); this.WordControl.m_oLogicDocument.Document_UpdateSelectionState();
this.LoadedObject = null; this.LoadedObject = null;
this.bInit_word_control = true; if (false === this.isSaveFonts_Images)
this.asc_fireCallback("asc_onDocumentContentReady"); {
this.bInit_word_control = true;
this.asc_fireCallback("asc_onDocumentContentReady");
}
this.WordControl.InitControl(); this.WordControl.InitControl();
...@@ -7008,11 +7018,14 @@ asc_docs_api.prototype.SetViewMode = function( isViewMode ) ...@@ -7008,11 +7018,14 @@ asc_docs_api.prototype.SetViewMode = function( isViewMode )
return; return;
} }
// быстрого перехода больше нет
/*
if ( this.bInit_word_control === true ) if ( this.bInit_word_control === true )
{ {
CollaborativeEditing.Apply_Changes(); CollaborativeEditing.Apply_Changes();
CollaborativeEditing.Release_Locks(); CollaborativeEditing.Release_Locks();
} }
*/
this.isUseEmbeddedCutFonts = false; this.isUseEmbeddedCutFonts = false;
......
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