Commit 5f85d9a6 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Сделано, чтобы кнопка сохранения на тулбаре вызывала "новое" сохранение.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57200 954022d7-b5bf-4e40-9824-e11837661b57
parent 84511c16
......@@ -2781,17 +2781,19 @@ function OnSave_Callback2(e)
}
}
asc_docs_api.prototype.asc_Save = function (isAutoSave) {
if(true === this.canSave) {
this.canSave = false;
this.isAutoSave = !!isAutoSave;
if (!this.isAutoSave) {
this.sync_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.Save);
this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.PrepareToSave);
}
this.CoAuthoringApi.askSaveChanges(OnSave_Callback);
}
asc_docs_api.prototype.asc_Save = function (isAutoSave)
{
this.asc_Save2();
// if(true === this.canSave) {
// this.canSave = false;
// this.isAutoSave = !!isAutoSave;
// if (!this.isAutoSave) {
// this.sync_StartAction(c_oAscAsyncActionType.Information, c_oAscAsyncAction.Save);
// this.sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.PrepareToSave);
// }
//
// this.CoAuthoringApi.askSaveChanges(OnSave_Callback);
// }
};
asc_docs_api.prototype.asc_OnSaveEnd = function (isDocumentSaved) {
......@@ -5874,7 +5876,7 @@ asc_docs_api.prototype.asc_removeComment = function(Id)
if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_None, { Type : changestype_2_Comment, Id : Id } ) )
{
this.WordControl.m_oLogicDocument.Create_NewHistoryPoint();
this.WordControl.m_oLogicDocument.Remove_Comment( Id, true );
this.WordControl.m_oLogicDocument.Remove_Comment( Id, true, true );
}
};
......
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