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

CheckChangedDocument

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@67456 954022d7-b5bf-4e40-9824-e11837661b57
parent b3c7da81
......@@ -422,6 +422,21 @@ asc_docs_api.prototype._onUpdateDocumentCanSave = function () {
};
///////////////////////////////////////////
asc_docs_api.prototype.CheckChangedDocument = function()
{
if (true === History.Have_Changes())
{
// дублирование евента. когда будет undo-redo - тогда
// эти евенты начнут отличаться
this.SetDocumentModified(true);
}
else
{
this.SetDocumentModified(false);
}
this._onUpdateDocumentCanSave();
};
asc_docs_api.prototype.SetUnchangedDocument = function()
{
this.SetDocumentModified(false);
......@@ -1129,7 +1144,7 @@ function OnSave_Callback(e) {
editor.CoAuthoringApi.onUnSaveLock = null;
// Выставляем, что документ не модифицирован
editor.SetUnchangedDocument();
editor.CheckChangedDocument();
editor.canSave = true;
editor.IsUserSave = false;
editor.sync_EndAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.Save);
......
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