Commit 4c2c01b9 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@66430 954022d7-b5bf-4e40-9824-e11837661b57
parent 6ce4f686
......@@ -75,8 +75,9 @@ CHistory.prototype.Have_Changes = function(IsUserSave)
window["DesktopOfflineAppDocumentApplyChanges"] = function(_changes)
{
editor["asc_nativeApplyChanges"](_changes);
editor["asc_nativeCalculateFile"]();
editor._coAuthoringSetChanges(_changes, new CDocumentColor( 191, 255, 199 ));
//editor["asc_nativeApplyChanges"](_changes);
//editor["asc_nativeCalculateFile"]();
};
/////////////////////////////////////////////////////////
......
......@@ -130,6 +130,21 @@ asc_docs_api.prototype.sendEvent = function() {
///////////////////CoAuthoring and Chat api//////////////////////////////
/////////////////////////////////////////////////////////////////////////
// Init CoAuthoring
asc_docs_api.prototype._coAuthoringSetChange = function(change, oColor)
{
var oChange = new CCollaborativeChanges();
oChange.Set_Data( change );
oChange.Set_Color( oColor );
CollaborativeEditing.Add_Changes( oChange );
};
asc_docs_api.prototype._coAuthoringSetChanges = function(e, oColor)
{
var Count = e.length;
for (var Index = 0; Index < Count; ++Index)
this._coAuthoringSetChange(e[Index], oColor);
};
asc_docs_api.prototype._coAuthoringInit = function() {
if (null == this.User || null == this.User.asc_getId()) {
this.User = new Asc.asc_CUser();
......
......@@ -81,8 +81,9 @@ CHistory.prototype.Have_Changes = function(IsUserSave)
window["DesktopOfflineAppDocumentApplyChanges"] = function(_changes)
{
editor["asc_nativeApplyChanges"](_changes);
editor["asc_nativeCalculateFile"]();
editor._coAuthoringSetChanges(_changes, new CDocumentColor( 191, 255, 199 ));
//editor["asc_nativeApplyChanges"](_changes);
//editor["asc_nativeCalculateFile"]();
};
/////////////////////////////////////////////////////////
......
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