diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2020-04-30 08:59:52 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2020-04-30 08:59:52 -0400 |
| commit | 3abdc4ea0aaa7895c5ad08560648dd000263bbfc (patch) | |
| tree | 0615eedf057a3b60549d969ffe5a8d39c7eb7bfb /www/js/EventsGraphsCtrl.js | |
| parent | b3854d30ded71fb3793602106fb50f25ff2a7bb9 (diff) | |
#933 remove spaces, removed encodeURIComponent, add back encodeURI in cordova http
Diffstat (limited to 'www/js/EventsGraphsCtrl.js')
| -rw-r--r-- | www/js/EventsGraphsCtrl.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/EventsGraphsCtrl.js b/www/js/EventsGraphsCtrl.js index d0c79614..8701f542 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 = "/"+encodeURIComponent("StartTime <=:") + endDate + "/"+encodeURIComponent("EndTime >=:") + startDate; + dateString = "/"+"StartTime<=:" + endDate + "/"+"EndTime>=:" + startDate; } var url = loginData.apiurl + - "/events/index/"+encodeURIComponent("MonitorId:") + monitors[j].Monitor.Id + dateString + + "/events/index/"+"MonitorId:" + monitors[j].Monitor.Id + dateString + ".json?page=1"+$rootScope.authSession; // console.log("Monitor event URL:" + url); NVR.log("EventGraph: composed url is " + url); |
