diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2020-09-07 17:47:23 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2020-09-07 17:47:23 -0400 |
| commit | 263814ad6fff42161285fe907d3459a430a38efd (patch) | |
| tree | e7a293b90c4d0aac63da9e17a8c4f079491cb79f /www/js/EventDateTimeFilterCtrl.js | |
| parent | cdd6ec0d7296d10db58b2fd9f90bae313ed4abda (diff) | |
#963 persist filter if going to event filter
Diffstat (limited to 'www/js/EventDateTimeFilterCtrl.js')
| -rw-r--r-- | www/js/EventDateTimeFilterCtrl.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/www/js/EventDateTimeFilterCtrl.js b/www/js/EventDateTimeFilterCtrl.js index 2de8dd15..733d6263 100644 --- a/www/js/EventDateTimeFilterCtrl.js +++ b/www/js/EventDateTimeFilterCtrl.js @@ -25,6 +25,10 @@ angular.module('zmApp.controllers') } }; + $scope.$on('$ionicView.beforeLeave', function () { + $rootScope.enteringEventFilter=false; + }); + $scope.$on('$ionicView.beforeEnter', function () { $scope.today = moment().format("YYYY-MM-DD"); $scope.monitors = NVR.getMonitorsNow(); |
