Commit 4a8b38c4 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@62492 954022d7-b5bf-4e40-9824-e11837661b57
parent d4f94fcf
......@@ -131,7 +131,7 @@
var reconnectTimeout, attemptCount=0;
function initSocksJs(url,docsCoApi) {
function initSocksJs(url, docsCoApi) {
var sockjs = new SockJS(url, null, {debug: true});
sockjs.onopen = function () {
......@@ -189,11 +189,9 @@
return sockjs;
}
SpellCheckApi.prototype.init = function (docid) {
this._docid = docid;
//Begin send auth
var docsCoApi = this;
this.sockjs_url = this._url + '/doc/'+docid+'/c';
this.sockjs = initSocksJs(this.sockjs_url, this);
};
......
......@@ -7133,10 +7133,13 @@ function _onOpenCommand(fCallback, incomeObject) {
}
if (result.changes && editor.VersionHistory) {
var arrColors = editor.VersionHistory.colors;
for (var i = 0; i < result.changes.length; ++i)
editor._coAuthoringSetChanges(result.changes[i],
arrColors[i] ? arrColors[i] : new CDocumentColor(191, 255, 199));
var arrColors = editor.VersionHistory.colors, color;
for (var i = 0; i < result.changes.length; ++i) {
color = arrColors[i];
editor._coAuthoringSetChanges(result.changes[i], color ?
new CDocumentColor((color >> 16) & 0xFF, (color >> 8) & 0xFF, color & 0xFF) :
new CDocumentColor(191, 255, 199));
}
}
if (result.bSerFormat)
......@@ -7440,15 +7443,9 @@ asc_docs_api.prototype.asc_continueSaving = function () {
// Version History
asc_docs_api.prototype.asc_showRevision = function (newObj) {
if (3 === arguments.length) {
var tmp = arguments[0];
newObj = new window["Asc"].asc_CVersionHistory();
// ToDo убрать эту проверку
if (!newObj.docId)
newObj.docId = '1233211';
newObj.url = tmp;
newObj.urlChanges = arguments[1];
newObj.currentChangeId = arguments[2];
newObj.colors = [];
}
var bUpdate = true;
if (null === this.VersionHistory)
......
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