From 3b5e6ca99ba939c251ae61356e4f2ffe5ef38063 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 2 Dec 2018 15:14:04 -0500 Subject: add option to leave out event detection in getEvents --- www/js/DataModel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www/js/DataModel.js') diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 3814f21d..704a4f05 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -2708,7 +2708,7 @@ angular.module('zmApp.controllers') // new reminder // //https:///zm/api/events.json?&sort=StartTime&direction=desc&page=1 - getEvents: function (monitorId, pageId, loadingStr, startTime, endTime) { + getEvents: function (monitorId, pageId, loadingStr, startTime, endTime, noObjectFilter) { @@ -2746,7 +2746,7 @@ angular.module('zmApp.controllers') myurl = myurl + "/AlarmFrames >=:" + (loginData.enableAlarmCount ? loginData.minAlarmCount : 0); //https:///zm/api/events/index/Notes%20REGEXP: detected%3A.json - if (loginData.objectDetectionFilter) { + if (loginData.objectDetectionFilter && !noObjectFilter) { myurl = myurl + '/Notes REGEXP:detected:'; } -- cgit v1.2.3