summaryrefslogtreecommitdiff
path: root/www/js/MontageCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2020-04-30 08:59:52 -0400
committerPliable Pixels <pliablepixels@gmail.com>2020-04-30 08:59:52 -0400
commit3abdc4ea0aaa7895c5ad08560648dd000263bbfc (patch)
tree0615eedf057a3b60549d969ffe5a8d39c7eb7bfb /www/js/MontageCtrl.js
parentb3854d30ded71fb3793602106fb50f25ff2a7bb9 (diff)
#933 remove spaces, removed encodeURIComponent, add back encodeURI in cordova http
Diffstat (limited to 'www/js/MontageCtrl.js')
-rw-r--r--www/js/MontageCtrl.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js
index f6d5967a..518a2687 100644
--- a/www/js/MontageCtrl.js
+++ b/www/js/MontageCtrl.js
@@ -583,18 +583,18 @@ angular.module('zmApp.controllers')
// https:///zm/api/events/index/MonitorId=:2.json?sort=StartTime&direction=desc&limit=1
var apiurl = ld.apiurl +'/events/index'; // we need some interval or it errors
- apiurl += "/"+encodeURIComponent("MonitorId =:") + monitor.Monitor.Id;
+ apiurl += "/"+"MonitorId=:" + monitor.Monitor.Id;
if (monitor.Monitor.Id in ld.lastEventCheckTimes) {
// now is server TZ time
var now = ld.lastEventCheckTimes[monitor.Monitor.Id];
- apiurl += "/StartTime >:" + now;
+ apiurl += "/StartTime>:" + now;
}
- apiurl += "/"+encodeURIComponent("AlarmFrames >=:") + (ld.enableAlarmCount ? ld.minAlarmCount : 0);
+ apiurl += "/"+"AlarmFrames>=:" + (ld.enableAlarmCount ? ld.minAlarmCount : 0);
if (ld.objectDetectionFilter) {
- apiurl +='/'+encodeURIComponent('Notes REGEXP:detected:');
+ apiurl +='/'+'Notes REGEXP:detected:';
}
/*if ( !(monitor.Monitor.Id in ld.lastEventCheckTimes)) {