summaryrefslogtreecommitdiff
path: root/www/js/EventDateTimeFilterCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2020-09-07 17:47:23 -0400
committerPliable Pixels <pliablepixels@gmail.com>2020-09-07 17:47:23 -0400
commit263814ad6fff42161285fe907d3459a430a38efd (patch)
treee7a293b90c4d0aac63da9e17a8c4f079491cb79f /www/js/EventDateTimeFilterCtrl.js
parentcdd6ec0d7296d10db58b2fd9f90bae313ed4abda (diff)
#963 persist filter if going to event filter
Diffstat (limited to 'www/js/EventDateTimeFilterCtrl.js')
-rw-r--r--www/js/EventDateTimeFilterCtrl.js4
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();