Commit 260263d1 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

При отсутствии изменений и индекса для удаления, мы просто снимаем lock-и с...

При отсутствии изменений и индекса для удаления, мы просто снимаем lock-и с заблокированных элементов (для Word и PowerPoint)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59000 954022d7-b5bf-4e40-9824-e11837661b57
parent ba089375
......@@ -844,7 +844,11 @@ function CCollaborativeEditing()
this.m_aNeedUnlock.length = 0;
this.m_aNeedUnlock2.length = 0;
editor.CoAuthoringApi.saveChanges(aChanges, ( null === History.SavedIndex ? null : SumIndex ) );
var deleteIndex = ( null === History.SavedIndex ? null : SumIndex );
if (0 < aChanges.length || null !== deleteIndex)
editor.CoAuthoringApi.saveChanges(aChanges, deleteIndex);
else
editor.CoAuthoringApi.unLockDocument(true);
if ( -1 === this.m_nUseType )
{
......
......@@ -798,7 +798,11 @@ function CCollaborativeEditing()
this.m_aNeedUnlock.length = 0;
this.m_aNeedUnlock2.length = 0;
editor.CoAuthoringApi.saveChanges(aChanges, ( null === History.SavedIndex ? null : SumIndex ) );
var deleteIndex = ( null === History.SavedIndex ? null : SumIndex );
if (0 < aChanges.length || null !== deleteIndex)
editor.CoAuthoringApi.saveChanges(aChanges, deleteIndex);
else
editor.CoAuthoringApi.unLockDocument(true);
if ( -1 === this.m_nUseType )
{
......
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