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.js4
1 files changed, 4 insertions, 0 deletions
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");