Commit 5b75e91c authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

setUserAlive через CoAuthoring

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64655 954022d7-b5bf-4e40-9824-e11837661b57
parent 92df4043
...@@ -136,6 +136,12 @@ ...@@ -136,6 +136,12 @@
} }
}; };
CDocsCoApi.prototype.setUserAlive = function() {
if (this._CoAuthoringApi && this._onlineWork) {
this._CoAuthoringApi.setUserAlive();
}
};
CDocsCoApi.prototype.askLock = function(arrayBlockId, callback) { CDocsCoApi.prototype.askLock = function(arrayBlockId, callback) {
if (this._CoAuthoringApi && this._onlineWork) { if (this._CoAuthoringApi && this._onlineWork) {
this._CoAuthoringApi.askLock(arrayBlockId, callback); this._CoAuthoringApi.askLock(arrayBlockId, callback);
...@@ -645,6 +651,10 @@ ...@@ -645,6 +651,10 @@
this._send({"type": "ping"}); this._send({"type": "ping"});
}; };
DocsCoApi.prototype.setUserAlive = function() {
this.bUserAlive = true;
};
DocsCoApi.prototype._sendPrebuffered = function() { DocsCoApi.prototype._sendPrebuffered = function() {
for (var i = 0; i < this._msgBuffer.length; i++) { for (var i = 0; i < this._msgBuffer.length; i++) {
this._sendRaw(this._msgBuffer[i]); this._sendRaw(this._msgBuffer[i]);
...@@ -1048,6 +1058,8 @@ ...@@ -1048,6 +1058,8 @@
this._documentFormatSave = documentFormatSave; this._documentFormatSave = documentFormatSave;
this._isViewer = isViewer; this._isViewer = isViewer;
this.bUserAlive = false; // Активность пользователя
this._initSocksJs(); this._initSocksJs();
}; };
......
...@@ -1921,9 +1921,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -1921,9 +1921,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
// Update user alive // Update user alive
spreadsheet_api.prototype.setUserAlive = function() { spreadsheet_api.prototype.setUserAlive = function() {
if (this.TrackFile) { this.CoAuthoringApi.setUserAlive();
this.TrackFile.setUserAlive();
}
}; };
// End Load document // End Load document
......
...@@ -659,8 +659,7 @@ asc_docs_api.prototype._onUpdateDocumentCanSave = function () { ...@@ -659,8 +659,7 @@ asc_docs_api.prototype._onUpdateDocumentCanSave = function () {
// Update user alive // Update user alive
asc_docs_api.prototype.setUserAlive = function () { asc_docs_api.prototype.setUserAlive = function () {
if (this.TrackFile) this.CoAuthoringApi.setUserAlive();
this.TrackFile.setUserAlive();
}; };
/////////////////////////////////////////// ///////////////////////////////////////////
......
...@@ -1621,8 +1621,7 @@ asc_docs_api.prototype._onUpdateDocumentCanSave = function () { ...@@ -1621,8 +1621,7 @@ asc_docs_api.prototype._onUpdateDocumentCanSave = function () {
// Update user alive // Update user alive
asc_docs_api.prototype.setUserAlive = function () { asc_docs_api.prototype.setUserAlive = function () {
if (this.TrackFile) this.CoAuthoringApi.setUserAlive();
this.TrackFile.setUserAlive();
}; };
// get functions // get functions
......
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