Commit 1a5a4593 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

перенес создание истории в апи.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60951 954022d7-b5bf-4e40-9824-e11837661b57
parent a79158ce
...@@ -288,7 +288,7 @@ function ExecuteNoHistory(f, oThis, args) ...@@ -288,7 +288,7 @@ function ExecuteNoHistory(f, oThis, args)
History = {Add: function(){}}; History = {Add: function(){}};
} }
History.TurnOff(); History.TurnOff && History.TurnOff();
var b_table_id = false; var b_table_id = false;
if(g_oTableId && !g_oTableId.m_bTurnOff) if(g_oTableId && !g_oTableId.m_bTurnOff)
...@@ -298,7 +298,7 @@ function ExecuteNoHistory(f, oThis, args) ...@@ -298,7 +298,7 @@ function ExecuteNoHistory(f, oThis, args)
} }
var ret = f.apply(oThis, args); var ret = f.apply(oThis, args);
History.TurnOn(); History.TurnOn && History.TurnOn();
if(b_table_id) if(b_table_id)
{ {
g_oTableId.m_bTurnOff = false; g_oTableId.m_bTurnOff = false;
......
...@@ -191,12 +191,8 @@ function CreatePresentationTableStyles(Styles, IdMap) ...@@ -191,12 +191,8 @@ function CreatePresentationTableStyles(Styles, IdMap)
function CPresentation(DrawingDocument) function CPresentation(DrawingDocument)
{ {
this.History = new CHistory(this); this.History = History;
History = this.History; History.Document = this;
// Создаем глобальные объекты, необходимые для совместного редактирования
g_oTableId = new CTableId();
//------------------------------------------------------------------------ //------------------------------------------------------------------------
......
...@@ -36,7 +36,10 @@ function asc_docs_api(name) ...@@ -36,7 +36,10 @@ function asc_docs_api(name)
var CDocsCoApi = window["CDocsCoApi"]; var CDocsCoApi = window["CDocsCoApi"];
var CSpellCheckApi = window["CSpellCheckApi"]; var CSpellCheckApi = window["CSpellCheckApi"];
History = new CHistory();
g_oTableId = new CTableId();
/************ private!!! **************/ /************ private!!! **************/
this.HtmlElementName = name; this.HtmlElementName = name;
......
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