Commit 60e7070d authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Убрал не нужные функции из asc_showRevision

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@62752 954022d7-b5bf-4e40-9824-e11837661b57
parent e0860ed7
...@@ -7474,9 +7474,8 @@ asc_docs_api.prototype.asc_continueSaving = function () { ...@@ -7474,9 +7474,8 @@ asc_docs_api.prototype.asc_continueSaving = function () {
// Version History // Version History
asc_docs_api.prototype.asc_showRevision = function (newObj) { asc_docs_api.prototype.asc_showRevision = function (newObj) {
// ToDo убрать эту проверку
if (!newObj.docId) if (!newObj.docId)
newObj.docId = '1233211'; return;
var bUpdate = true; var bUpdate = true;
if (null === this.VersionHistory) if (null === this.VersionHistory)
...@@ -7485,9 +7484,6 @@ asc_docs_api.prototype.asc_showRevision = function (newObj) { ...@@ -7485,9 +7484,6 @@ asc_docs_api.prototype.asc_showRevision = function (newObj) {
bUpdate = this.VersionHistory.update(newObj); bUpdate = this.VersionHistory.update(newObj);
if (bUpdate) { if (bUpdate) {
this.asc_CloseFile(); this.asc_CloseFile();
g_oIdCounter.Clear();
g_oTableId.Clear();
this.isApplyChangesOnOpenEnabled = true;
this.DocInfo.put_Id(this.VersionHistory.docId); this.DocInfo.put_Id(this.VersionHistory.docId);
this.DocInfo.put_Url(this.VersionHistory.url); this.DocInfo.put_Url(this.VersionHistory.url);
...@@ -7506,6 +7502,7 @@ asc_docs_api.prototype.asc_CloseFile = function() ...@@ -7506,6 +7502,7 @@ asc_docs_api.prototype.asc_CloseFile = function()
History.Clear(); History.Clear();
g_oTableId.Clear(); g_oTableId.Clear();
g_oIdCounter.Clear(); g_oIdCounter.Clear();
this.isApplyChangesOnOpenEnabled = true;
this.WordControl.m_oLogicDocument.Stop_Recalculate(); this.WordControl.m_oLogicDocument.Stop_Recalculate();
this.WordControl.m_oLogicDocument.Stop_CheckSpelling(); this.WordControl.m_oLogicDocument.Stop_CheckSpelling();
......
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