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

сделал также как и в документах documentModified

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@62221 954022d7-b5bf-4e40-9824-e11837661b57
parent 22906567
......@@ -1268,12 +1268,9 @@ function CDrawingDocument()
if (bIsAttack || !this.m_bIsSendApiDocChanged)
{
this.m_bIsSendApiDocChanged = true;
this.m_oWordControl.m_oApi.isDocumentModify = true;
this.m_oWordControl.m_oApi.asc_fireCallback("asc_onDocumentChanged");
this.m_oWordControl.m_oApi.SetDocumentModified(true);
// дублирование евента. когда будет undo-redo - тогда
// эти евенты начнут отличаться
this.m_oWordControl.m_oApi.asc_fireCallback("asc_onDocumentModifiedChanged");
this.m_oWordControl.m_oApi.asc_fireCallback("asc_onDocumentChanged");
}
}
......
......@@ -3087,11 +3087,9 @@ CPresentation.prototype =
if ( true === History.Have_Changes() )
{
editor.isDocumentModify = true;
// дублирование евента. когда будет undo-redo - тогда
// эти евенты начнут отличаться
editor.asc_fireCallback("asc_onDocumentModifiedChanged");
editor.SetDocumentModified(true);
editor._onUpdateDocumentCanSave();
}
else
......
......@@ -641,11 +641,21 @@ asc_docs_api.prototype.setUserAlive = function () {
///////////////////////////////////////////
asc_docs_api.prototype.SetUnchangedDocument = function()
{
this.isDocumentModify = false;
this.asc_fireCallback("asc_onDocumentModifiedChanged");
this.SetDocumentModified(false);
this._onUpdateDocumentCanSave();
};
asc_docs_api.prototype.SetDocumentModified = function(bValue)
{
this.isDocumentModify = bValue;
this.asc_fireCallback("asc_onDocumentModifiedChanged");
if (undefined !== window["AscDesktopEditor"])
{
window["AscDesktopEditor"]["onDocumentModifiedChanged"](bValue);
}
};
asc_docs_api.prototype.isDocumentModified = function()
{
if (!this.canSave) {
......
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