summaryrefslogtreecommitdiff
path: root/www/js/EventCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/EventCtrl.js')
-rw-r--r--www/js/EventCtrl.js2
1 files changed, 1 insertions, 1 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 = "";