From 3eb690e300d797433455c1fcbd9a769c15aa9d7c Mon Sep 17 00:00:00 2001 From: ARC Date: Sat, 2 May 2015 16:36:34 -0400 Subject: Android Users Rejoice! Major updates: Android port works like a charm now. Integrated Crosswalk for good performance for Android phones, reworked Montage view to step around Chrome's problem of getting stuck in pending state for HTTP requests that don't close soon and more. --- www/js/EventsGraphsCtrl.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'www/js/EventsGraphsCtrl.js') diff --git a/www/js/EventsGraphsCtrl.js b/www/js/EventsGraphsCtrl.js index 5cd5e71a..63ec3b56 100644 --- a/www/js/EventsGraphsCtrl.js +++ b/www/js/EventsGraphsCtrl.js @@ -2,6 +2,9 @@ // the main function is generateChart. I call generate chart with required parameters // from the template file +// FIXME: I need to clean this up, the animation is stupid because the data loads +// dynamically + angular.module('zmApp.controllers').controller('zmApp.EventsGraphsCtrl', function ($ionicPlatform, $scope, ZMDataModel, $ionicSideMenuDelegate, $rootScope, $http) { console.log("Inside Graphs controller"); $scope.openMenu = function () { @@ -87,7 +90,7 @@ angular.module('zmApp.controllers').controller('zmApp.EventsGraphsCtrl', functio console.log("Monitor event URL:" + url); if (!ZMDataModel.isSimulated()) { - $http.get(url, {timeout:10000}) + $http.get(url /*,{timeout:15000}*/) .success(function (data) { console.log("**** EVENT COUNT FOR MONITOR " + monitors[j].Monitor.Id + " IS " + data.pagination.count); @@ -110,7 +113,7 @@ angular.module('zmApp.controllers').controller('zmApp.EventsGraphsCtrl', functio }); } // is not simulated - else // grab a random event count + else // simulated: grab a random event count { var rndEventCount = Math.floor(Math.random() * (100 - 20 + 1)) + 20; $scope.chartObject.data.push([monitors[j].Monitor.Name, rndEventCount, -- cgit v1.2.3