From bfe426a83bfcd32bac22bc06cccb15f15a9f9450 Mon Sep 17 00:00:00 2001 From: ARC Date: Mon, 4 May 2015 04:32:51 -0400 Subject: Events Graphs now supports time based filters (using the excellent moment library) --- www/js/EventCtrl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'www/js/EventCtrl.js') diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 7ae08535..d49bc244 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -279,7 +279,7 @@ angular.module('zmApp.controllers').controller('zmApp.EventCtrl', function ($ion $scope.doRefresh = function () { console.log("***Pull to Refresh"); $scope.events = []; - $scope.events = ZMDataModel.getEvents($scope.id, 1) + ZMDataModel.getEvents($scope.id, 1) .then(function (data) { console.log("EventCtrl Got events"); //var events = []; @@ -287,6 +287,7 @@ angular.module('zmApp.controllers').controller('zmApp.EventCtrl', function ($ion for (var i = 0; i < myevents.length; i++) { myevents[i].Event.MonitorName = ZMDataModel.getMonitorName(myevents[i].Event.MonitorId); + } moreEvents = true; -- cgit v1.2.3