summaryrefslogtreecommitdiff
path: root/www/js/TimelineCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2019-08-23 10:57:29 -0400
committerPliable Pixels <pliablepixels@gmail.com>2019-08-23 10:57:29 -0400
commit9e8c42bdc35231b5adfcd37a2cb2bf71fc5c5243 (patch)
treed408a6740c43d3ad85defa93cfc489d1b3ddb8f5 /www/js/TimelineCtrl.js
parentf43779328a21e50acf4b716b77cbae1dd6bba812 (diff)
#848 fix time filter logic, also make object detection filter selectable in timeline, just like in Events
Diffstat (limited to 'www/js/TimelineCtrl.js')
-rw-r--r--www/js/TimelineCtrl.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/www/js/TimelineCtrl.js b/www/js/TimelineCtrl.js
index 4eae804b..e2305e6f 100644
--- a/www/js/TimelineCtrl.js
+++ b/www/js/TimelineCtrl.js
@@ -348,6 +348,9 @@ angular.module('zmApp.controllers').controller('zmApp.TimelineCtrl', ['$ionicPla
notes: ''
};
+ $scope.lastVideoStateTime = {
+ 'time':''
+ };
$scope.newEvents = '';
@@ -664,6 +667,19 @@ angular.module('zmApp.controllers').controller('zmApp.TimelineCtrl', ['$ionicPla
loginData.followTimeLine = $scope.follow.time;
NVR.setLogin(loginData);
};
+
+ $scope.toggleObjectDetectionFilter = function () {
+
+ var ld = NVR.getLogin();
+ ld.objectDetectionFilter = !ld.objectDetectionFilter;
+ NVR.setLogin(ld);
+ NVR.debug ("object detection filter: "+ld.objectDetectionFilter);
+ $scope.loginData = NVR.getLogin();
+ drawGraph(fromDate, toDate, maxItems);
+
+ };
+
+
//-------------------------------------------------
// Called with day/week/month
// so we can redraw the graph