From 1bd8fd4419bb43519b0194d7504f69166b1b4917 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 6 Sep 2020 08:01:48 -0400 Subject: don't add alarm frames if 0 --- www/js/EventCtrl.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'www/js/EventCtrl.js') diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index b37b5f92..1fdac94a 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -1860,7 +1860,9 @@ angular.module('zmApp.controllers') //https://server/zm/api/events/consoleEvents/5%20minute.json var ld = NVR.getLogin(); - var af = "/"+"AlarmFrames >=:" + (ld.enableAlarmCount ? ld.minAlarmCount : 0); + var af=""; + if (ld.enableAlarmCount && ld.minAlarmCount ) + af = "/AlarmFrames >=:" + ld.minAlarmCount ; if (ld.objectDetectionFilter) { af = af + '/'+'Notes REGEXP:detected:'; @@ -2981,7 +2983,7 @@ angular.module('zmApp.controllers') if ($rootScope.devWidth > $rootScope.devHeight) { if (ld.eventViewThumbsSize == 'large') { - return calculateAspectRatioFit(mw, mh, 0.9* $rootScope.devWidth, 1.5 * $rootScope.devHeight); + return calculateAspectRatioFit(mw, mh, 0.8* $rootScope.devWidth, 1.5 * $rootScope.devHeight); } else { return calculateAspectRatioFit(mw, mh, 0.5 * $rootScope.devWidth, 0.7 * $rootScope.devHeight); -- cgit v1.2.3