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)
TT_USER_COUNT: 0, // by user count
TT_ACTIVE_CONNECTION: 1, // by active connections
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)
......@@ -40,12 +42,28 @@ function(window, undefined)
this.trackingUrl = obj["trackingUrl"];
}
if(c_TrackingType.TT_ACTIVE_CONNECTION == this.trackingType)
this.isPeriodicalyTracking = true;
if(c_TrackingType.TT_DOCUMENT_SESSION == this.trackingType)
this.isAliveTrackingOnly = true;
switch (this.trackingType)
{
case c_TrackingType.TT_ACTIVE_CONNECTION:
this.isPeriodicalyTracking = 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.isDocumentModifiedFunc = null;
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