diff options
| author | ARC <arjunrc@gmail.com> | 2015-05-02 16:36:34 -0400 |
|---|---|---|
| committer | ARC <arjunrc@gmail.com> | 2015-05-02 16:36:34 -0400 |
| commit | 3eb690e300d797433455c1fcbd9a769c15aa9d7c (patch) | |
| tree | f366512aedac1bba31bf22e440edf49e7003bcf3 /www/js/EventsGraphsCtrl.js | |
| parent | 9faf95be527b8b7c23e4ed4226c35bb771129f41 (diff) | |
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.
Diffstat (limited to 'www/js/EventsGraphsCtrl.js')
| -rw-r--r-- | www/js/EventsGraphsCtrl.js | 7 |
1 files changed, 5 insertions, 2 deletions
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, |
