From 9e8c42bdc35231b5adfcd37a2cb2bf71fc5c5243 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 23 Aug 2019 10:57:29 -0400 Subject: #848 fix time filter logic, also make object detection filter selectable in timeline, just like in Events --- www/js/TimelineCtrl.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'www/js/TimelineCtrl.js') 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 -- cgit v1.2.3