From 9bc244d4ddd82ed16d33b25a8947a20a990b071a Mon Sep 17 00:00:00 2001 From: ARC Date: Wed, 29 Apr 2015 20:13:48 -0400 Subject: need to fix only page 1 loading --- www/js/DataModel.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'www') 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 -- cgit v1.2.3