summaryrefslogtreecommitdiff
path: root/www/js/NVR.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2019-05-25 10:17:51 -0400
committerPliable Pixels <pliablepixels@gmail.com>2019-05-25 10:17:51 -0400
commit5bf531cfd5aa6812dd96bb3aa887187f71f3f560 (patch)
tree0628ef7a8467cd1124245cf28a59ed5bfda3ad17 /www/js/NVR.js
parente2f5d6477fe22e31d1f09d15570b289fb69b9e6a (diff)
fix object detect filter
Diffstat (limited to 'www/js/NVR.js')
-rw-r--r--www/js/NVR.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/www/js/NVR.js b/www/js/NVR.js
index 53d7a350..1b5b9da8 100644
--- a/www/js/NVR.js
+++ b/www/js/NVR.js
@@ -458,7 +458,7 @@ angular.module('zmApp.controllers')
return d.promise;
}
debug("API based login returned. ");
- //console.log (JSON.stringify(succ));
+ console.log (JSON.stringify(succ));
setCurrentServerVersion(succ.version);
$ionicLoading.hide();
//$rootScope.loggedIntoZm = 1;
@@ -503,6 +503,7 @@ angular.module('zmApp.controllers')
loginData.loginAPISupported = true;
setLogin(loginData);
+
log("Stream authentication construction: " +
$rootScope.authSession);
@@ -3138,7 +3139,7 @@ angular.module('zmApp.controllers')
//https:///zm/api/events/index/Notes%20REGEXP:detected%3A.json
if (loginData.objectDetectionFilter && !noObjectFilter) {
- myurl = myurl + '/Notes%20REGEXP:detected%3A';
+ myurl = myurl + '/Notes REGEXP:detected:';
}
@@ -3228,7 +3229,7 @@ angular.module('zmApp.controllers')
// don't know why but adding page messes up Notes
//https:///zm/api/events/index/Notes%20REGEXP: detected%3A.json
if (loginData.objectDetectionFilter && !noObjectFilter) {
- myurl = myurl + '/Notes REGEXP:"detected:"';
+ myurl = myurl + '/Notes REGEXP:detected:';
}
myurl = myurl + ".json?&sort=StartTime&direction=desc&page=" + pageId + $rootScope.authSession;