diff options
| author | ARC <arjunrc@gmail.com> | 2015-04-29 20:13:48 -0400 |
|---|---|---|
| committer | ARC <arjunrc@gmail.com> | 2015-04-29 20:13:48 -0400 |
| commit | 9bc244d4ddd82ed16d33b25a8947a20a990b071a (patch) | |
| tree | fdd2335f203a951a9e98d1314cca00610eb75182 /www | |
| parent | e490bd7804952572362e56a163f46ca76fd07366 (diff) | |
need to fix only page 1 loading
Diffstat (limited to 'www')
| -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 |
