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

Добавлен еще один трек по пользователям.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54925 954022d7-b5bf-4e40-9824-e11837661b57
parent dd297b9d
...@@ -14,7 +14,9 @@ function(window, undefined) ...@@ -14,7 +14,9 @@ function(window, undefined)
TT_USER_COUNT: 0, // by user count TT_USER_COUNT: 0, // by user count
TT_ACTIVE_CONNECTION: 1, // by active connections TT_ACTIVE_CONNECTION: 1, // by active connections
TT_TIME_USAGE: 2, // by time of editing TT_TIME_USAGE: 2, // by time of editing
TT_DOCUMENT_SESSION: 3 // by document editing session count TT_DOCUMENT_SESSION: 3, // by document editing session count
TT_NONE: 4, // no tracking
TT_USER_COUNT_2: 5 // by user count, without active/inactive detection
}; };
function CTrackFile(obj) function CTrackFile(obj)
...@@ -40,12 +42,28 @@ function(window, undefined) ...@@ -40,12 +42,28 @@ function(window, undefined)
this.trackingUrl = obj["trackingUrl"]; this.trackingUrl = obj["trackingUrl"];
} }
if(c_TrackingType.TT_ACTIVE_CONNECTION == this.trackingType) switch (this.trackingType)
this.isPeriodicalyTracking = true; {
case c_TrackingType.TT_ACTIVE_CONNECTION:
if(c_TrackingType.TT_DOCUMENT_SESSION == this.trackingType) this.isPeriodicalyTracking = true;
this.isAliveTrackingOnly = true; this.isAliveTrackingOnly = false;
break;
case c_TrackingType.TT_DOCUMENT_SESSION:
case c_TrackingType.TT_USER_COUNT_2:
this.isPeriodicalyTracking = false;
this.isAliveTrackingOnly = true;
break;
case c_TrackingType.TT_NONE:
this.isTrackDone = true;
this.isPeriodicalyTracking = false;
break;
default:
break;
}
this.sendTrackFunc = null; this.sendTrackFunc = null;
this.isDocumentModifiedFunc = null; this.isDocumentModifiedFunc = null;
this.trackingInterval = 300 * 1000; this.trackingInterval = 300 * 1000;
......
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