Commit c12b93cb authored by Alexey.Golubev's avatar Alexey.Golubev Committed by Alexander.Trofimov

Переделана передача функции в setIsDocumentModifiedFunc.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51238 954022d7-b5bf-4e40-9824-e11837661b57
parent 5b19cf99
......@@ -1255,8 +1255,19 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.TrackFile.setDocId(this.DocInfo.Id);
this.TrackFile.setUserId(this.DocInfo.UserId);
this.TrackFile.setTrackFunc(this._asc_sendTrack);
this.TrackFile.setIsDocumentModifiedFunc(this.asc_isDocumentModified);
var oThis = this;
var _sendTrack = function(callback, url, data){
return oThis._asc_sendTrack(callback, url, data);
};
this.TrackFile.setTrackFunc();
var _isDocumentModified = function(){
return oThis.asc_isDocumentModified()
};
this.TrackFile.setIsDocumentModifiedFunc(_isDocumentModified);
if(undefined != oSettings['TrackingInterval'] &&
null != oSettings['TrackingInterval'])
......
......@@ -736,7 +736,11 @@ asc_docs_api.prototype.asc_getEditorPermissionsCallback = function(incomeObject)
editor.TrackFile.setDocId(editor.DocInfo.get_Id());
editor.TrackFile.setUserId(editor.DocInfo.get_UserId());
editor.TrackFile.setTrackFunc(sendTrack);
editor.TrackFile.setIsDocumentModifiedFunc(editor.isDocumentModified);
var _isDocumentModified = function(){
return editor.isDocumentModified();
};
editor.TrackFile.setIsDocumentModifiedFunc(_isDocumentModified);
if(undefined != oSettings['TrackingInterval'] &&
null != oSettings['TrackingInterval'])
......
......@@ -861,7 +861,11 @@ asc_docs_api.prototype.asc_getEditorPermissionsCallback = function(incomeObject)
editor.TrackFile.setDocId(editor.DocInfo.get_Id());
editor.TrackFile.setUserId(editor.DocInfo.get_UserId());
editor.TrackFile.setTrackFunc(sendTrack);
editor.TrackFile.setIsDocumentModifiedFunc(editor.isDocumentModified);
var _isDocumentModified = function(){
return editor.isDocumentModified();
};
editor.TrackFile.setIsDocumentModifiedFunc(_isDocumentModified);
if(undefined != oSettings['TrackingInterval'] &&
null != oSettings['TrackingInterval'])
......
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