diff options
Diffstat (limited to 'www/js/TimelineCtrl.js')
| -rw-r--r-- | www/js/TimelineCtrl.js | 16 |
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 |
