summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/EventCtrl.js2
-rw-r--r--www/js/EventDateTimeFilterCtrl.js4
-rwxr-xr-xwww/js/app.js2
3 files changed, 6 insertions, 2 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js
index 4475af83..02c22cc3 100644
--- a/www/js/EventCtrl.js
+++ b/www/js/EventCtrl.js
@@ -184,7 +184,7 @@ angular.module('zmApp.controllers')
$scope.$on('$ionicView.beforeLeave', function () {
//$window.removeEventListener('orientationchange', updateUI);
- if ($stateParams.lastCheckTime != undefined && $stateParams.lastCheckTime != '' && moment($stateParams.lastCheckTime).isValid()) {
+ if ($stateParams.lastCheckTime != undefined && $stateParams.lastCheckTime != '' && moment($stateParams.lastCheckTime).isValid() && !$rootScope.enteringEventFilter) {
NVR.debug ("removing montage temporary filter");
$rootScope.isEventFilterOn = false;
$rootScope.fromDate = "";
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();
diff --git a/www/js/app.js b/www/js/app.js
index 81977def..8b4b3e88 100755
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -1139,7 +1139,7 @@ angular.module('zmApp', [
-
+ $rootScope.enteringEventFilter=false;
$rootScope.dpadId = 0;
$rootScope.textScaleFactor = 1.0;
$rootScope.isLoggedIn = false;