Commit 8e18c816 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Применение цветов из присланных сверху для версий

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@62474 954022d7-b5bf-4e40-9824-e11837661b57
parent fe563ac2
...@@ -7128,9 +7128,11 @@ function _onOpenCommand(fCallback, incomeObject) { ...@@ -7128,9 +7128,11 @@ function _onOpenCommand(fCallback, incomeObject) {
return; return;
} }
if (result.changes) { if (result.changes && editor.VersionHistory) {
var arrColors = editor.VersionHistory.colors;
for (var i = 0; i < result.changes.length; ++i) for (var i = 0; i < result.changes.length; ++i)
editor._coAuthoringSetChanges(result.changes[i], new CDocumentColor( 191, 255, 199 )); editor._coAuthoringSetChanges(result.changes[i],
arrColors[i] ? arrColors[i] : new CDocumentColor(191, 255, 199));
} }
if (result.bSerFormat) if (result.bSerFormat)
......
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