summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorARC <arjunrc@gmail.com>2015-04-29 20:13:48 -0400
committerARC <arjunrc@gmail.com>2015-04-29 20:13:48 -0400
commit9bc244d4ddd82ed16d33b25a8947a20a990b071a (patch)
treefdd2335f203a951a9e98d1314cca00610eb75182 /www
parente490bd7804952572362e56a163f46ca76fd07366 (diff)
need to fix only page 1 loading
Diffstat (limited to 'www')
-rw-r--r--www/js/DataModel.js4
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