From e75a44b427c0f0774cb85227d01a6cb20fb8fa0c Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Mon, 25 Feb 2019 11:06:48 -0500 Subject: #779 add options in dev to disable --- www/js/EventCtrl.js | 4 ++++ www/js/NVR.js | 7 +++++++ 2 files changed, 11 insertions(+) (limited to 'www/js') diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 5cf91eb3..a7ba3128 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -137,6 +137,10 @@ angular.module('zmApp.controllers') function timedPageReload() { + if (!NVR.getLogin().enableEventRefresh) { + NVR.debug ("Event refresh disabled"); + return; + } if ($ionicScrollDelegate.$getByHandle("mainScroll").getScrollPosition().top !=0 ) { NVR.debug ("Not reloading as you have scrolled"); diff --git a/www/js/NVR.js b/www/js/NVR.js index 481d8512..82b7ac66 100644 --- a/www/js/NVR.js +++ b/www/js/NVR.js @@ -191,6 +191,7 @@ angular.module('zmApp.controllers') 'saveToCloud': true, 'montageReviewCollapse': true, 'objectDetectionFilter': false, + 'enableEventRefresh': true, }; @@ -1507,6 +1508,12 @@ angular.module('zmApp.controllers') } + if (typeof loginData.enableEventRefresh == 'undefined') { + + loginData.enableEventRefresh = true; + + } + loginData.canSwipeMonitors = true; loginData.forceImageModePath = false; -- cgit v1.2.3