diff options
Diffstat (limited to 'www/js/DataModel.js')
| -rw-r--r-- | www/js/DataModel.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 4a4fdee0..90830e73 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -260,6 +260,10 @@ angular.module('zmApp.controllers').service('ZMDataModel', ['$http', '$q', '$ion var d = $q.defer(); var myevents = []; var apiurl = loginData.apiurl; + + // FIXME: THIS IS JUST FETCHING PAGE 1 !! + // looks like I have more work to do here + var myurl = (monitorId == 0) ? apiurl + "/events.json" : apiurl + "/events/index/MonitorId:" + monitorId + ".json"; console.log("Constructed URL is " + myurl); // FIXME: When retrieving lots of events, I really need to do pagination here - more complex |
