Commit d1cfa1ee authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 31263 - [Fast/Strict] Блокировка кнопки выбора цветовой схемы при совместном редактировании

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@67142 954022d7-b5bf-4e40-9824-e11837661b57
parent ffcc28bf
......@@ -947,6 +947,51 @@ asc_docs_api.prototype._coAuthoringInitEnd = function() {
// Теперь обновлять состояние необходимо, чтобы обновить локи в режиме рецензирования.
editor.WordControl.m_oLogicDocument.Document_UpdateInterfaceState();
if (Class instanceof CHeaderFooterController)
{
if (NewType !== locktype_Mine && NewType !== locktype_None)
{
editor.sync_LockHeaderFooters();
}
else
{
editor.sync_UnLockHeaderFooters();
}
}
else if (Class instanceof CDocument)
{
if (NewType !== locktype_Mine && NewType !== locktype_None)
{
editor.sync_LockDocumentProps();
}
else
{
editor.sync_UnLockDocumentProps();
}
}
else if (Class instanceof CComment)
{
if (NewType !== locktype_Mine && NewType !== locktype_None)
{
editor.sync_LockComment(Class.Get_Id(), e["user"]);
}
else
{
editor.sync_UnLockComment(Class.Get_Id());
}
}
else if (Class instanceof CGraphicObjects)
{
if (NewType !== locktype_Mine && NewType !== locktype_None)
{
editor.sync_LockDocumentSchema();
}
else
{
editor.sync_UnLockDocumentSchema();
}
}
}
} else {
CollaborativeEditing.Remove_NeedLock(Id);
......
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