diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2020-09-08 09:40:30 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2020-09-08 09:40:30 -0400 |
| commit | cc58763cf182ec18efeb374bee0d9091dfb647df (patch) | |
| tree | 78af8ebf10358b4db560826d9dc3177f09806b74 /www/js/EventDateTimeFilterCtrl.js | |
| parent | 7879974cb3dd9e8893cb43475df3041d33047ba5 (diff) | |
use stateChange inside EventCtrl to clear filters instead of rootScope https://github.com/pliablepixels/zmNinja/commit/ace86431e16405d5b4e3bb78fab4f82c3cb6f980#commitcomment-42123734
Diffstat (limited to 'www/js/EventDateTimeFilterCtrl.js')
| -rw-r--r-- | www/js/EventDateTimeFilterCtrl.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/www/js/EventDateTimeFilterCtrl.js b/www/js/EventDateTimeFilterCtrl.js index 733d6263..28779310 100644 --- a/www/js/EventDateTimeFilterCtrl.js +++ b/www/js/EventDateTimeFilterCtrl.js @@ -25,10 +25,7 @@ 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(); |
