Commit 01d8f9d3 authored by Oleg.Korshul's avatar Oleg.Korshul

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66430 954022d7-b5bf-4e40-9824-e11837661b57
parent dcb1a277
...@@ -75,8 +75,9 @@ CHistory.prototype.Have_Changes = function(IsUserSave) ...@@ -75,8 +75,9 @@ CHistory.prototype.Have_Changes = function(IsUserSave)
window["DesktopOfflineAppDocumentApplyChanges"] = function(_changes) window["DesktopOfflineAppDocumentApplyChanges"] = function(_changes)
{ {
editor["asc_nativeApplyChanges"](_changes); editor._coAuthoringSetChanges(_changes, new CDocumentColor( 191, 255, 199 ));
editor["asc_nativeCalculateFile"](); //editor["asc_nativeApplyChanges"](_changes);
//editor["asc_nativeCalculateFile"]();
}; };
///////////////////////////////////////////////////////// /////////////////////////////////////////////////////////
......
...@@ -130,6 +130,21 @@ asc_docs_api.prototype.sendEvent = function() { ...@@ -130,6 +130,21 @@ asc_docs_api.prototype.sendEvent = function() {
///////////////////CoAuthoring and Chat api////////////////////////////// ///////////////////CoAuthoring and Chat api//////////////////////////////
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
// Init CoAuthoring // 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() { asc_docs_api.prototype._coAuthoringInit = function() {
if (null == this.User || null == this.User.asc_getId()) { if (null == this.User || null == this.User.asc_getId()) {
this.User = new Asc.asc_CUser(); this.User = new Asc.asc_CUser();
......
...@@ -81,8 +81,9 @@ CHistory.prototype.Have_Changes = function(IsUserSave) ...@@ -81,8 +81,9 @@ CHistory.prototype.Have_Changes = function(IsUserSave)
window["DesktopOfflineAppDocumentApplyChanges"] = function(_changes) window["DesktopOfflineAppDocumentApplyChanges"] = function(_changes)
{ {
editor["asc_nativeApplyChanges"](_changes); editor._coAuthoringSetChanges(_changes, new CDocumentColor( 191, 255, 199 ));
editor["asc_nativeCalculateFile"](); //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