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

переход в режим с автосейвом при отключении всех остальных

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60233 954022d7-b5bf-4e40-9824-e11837661b57
parent 1d5899d3
...@@ -495,7 +495,13 @@ asc_docs_api.prototype._coAuthoringInit = function () { ...@@ -495,7 +495,13 @@ asc_docs_api.prototype._coAuthoringInit = function () {
t.isStartCoAuthoringOnEndLoad = true; t.isStartCoAuthoringOnEndLoad = true;
}; };
this.CoAuthoringApi.onEndCoAuthoring = function (isStartEvent) { this.CoAuthoringApi.onEndCoAuthoring = function (isStartEvent) {
// ToDo add code CollaborativeEditing.End_CollaborationEditing();
if (false != t.WordControl.m_oLogicDocument.DrawingDocument.IsLockObjectsEnable)
{
t.WordControl.m_oLogicDocument.DrawingDocument.IsLockObjectsEnable = false;
t.WordControl.m_oLogicDocument.DrawingDocument.FirePaint();
}
}; };
/** /**
* Event об отсоединении от сервера * Event об отсоединении от сервера
......
...@@ -2061,7 +2061,10 @@ CGraphics.prototype = ...@@ -2061,7 +2061,10 @@ CGraphics.prototype =
DrawLockObjectRect : function(lock_type, x, y, w, h) DrawLockObjectRect : function(lock_type, x, y, w, h)
{ {
if (lock_type == locktype_None || editor.WordControl.m_oDrawingDocument.IsLockObjectsEnable === false || editor.isViewMode || this.IsThumbnail) if (editor.isViewMode || this.IsThumbnail || lock_type == locktype_None)
return;
if (editor.WordControl.m_oDrawingDocument.IsLockObjectsEnable === false && lock_type == locktype_Mine)
return; return;
if (lock_type == locktype_Mine) if (lock_type == locktype_Mine)
......
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