summaryrefslogtreecommitdiff
path: root/www/js/EventsGraphsCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/EventsGraphsCtrl.js')
-rw-r--r--www/js/EventsGraphsCtrl.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/EventsGraphsCtrl.js b/www/js/EventsGraphsCtrl.js
index c3c69b40..d0c79614 100644
--- a/www/js/EventsGraphsCtrl.js
+++ b/www/js/EventsGraphsCtrl.js
@@ -182,10 +182,10 @@ angular.module('zmApp.controllers').controller('zmApp.EventsGraphsCtrl', ['$ioni
var dateString = "";
if (hrs) {
- dateString = "/StartTime <=:" + endDate + "/EndTime >=:" + startDate;
+ dateString = "/"+encodeURIComponent("StartTime <=:") + endDate + "/"+encodeURIComponent("EndTime >=:") + startDate;
}
var url = loginData.apiurl +
- "/events/index/MonitorId:" + monitors[j].Monitor.Id + dateString +
+ "/events/index/"+encodeURIComponent("MonitorId:") + monitors[j].Monitor.Id + dateString +
".json?page=1"+$rootScope.authSession;
// console.log("Monitor event URL:" + url);
NVR.log("EventGraph: composed url is " + url);