summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorArjun Roychowdhury <pliablepixels@gmail.com>2015-11-02 16:12:16 -0500
committerArjun Roychowdhury <pliablepixels@gmail.com>2015-11-02 16:12:16 -0500
commitb1c386a65fee2d94c250e6e7dd5c744ac1ee1bdf (patch)
tree1919856d1e9654f85331821f9b3184c617ec3443 /www
parent8f70ab26ac98f2a02c163c67bcaac7fa62493f02 (diff)
trying to fix getDiskStatus returning empty
Diffstat (limited to 'www')
-rw-r--r--www/js/StateCtrl.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/www/js/StateCtrl.js b/www/js/StateCtrl.js
index b72a175e..bfcd1303 100644
--- a/www/js/StateCtrl.js
+++ b/www/js/StateCtrl.js
@@ -42,16 +42,16 @@ angular.module('zmApp.controllers').controller('zmApp.StateCtrl', ['$ionicPopup'
$timeout(function () {
ZMDataModel.zmDebug("invoking LoadStatus...");
getLoadStatus();
- }, 500);
- $timeout(function () {
- ZMDataModel.zmDebug("invoking DiskStatus...");
- getDiskStatus();
- }, 1000);
+ }, 2000);
+
$timeout(function () {
ZMDataModel.zmDebug("invoking CurrentState...");
getCurrentState();
- }, 1500);
-
+ }, 4000);
+$timeout(function () {
+ ZMDataModel.zmDebug("invoking DiskStatus...");
+ getDiskStatus();
+ }, 6000);
//-------------------------------------------------------------------------
// Lets make sure we set screen dim properly as we enter
// The problem is we enter other states before we leave previous states
@@ -361,9 +361,9 @@ angular.module('zmApp.controllers').controller('zmApp.StateCtrl', ['$ionicPopup'
console.log("***Pull to Refresh");
ZMDataModel.zmDebug("StateCtrl/refresh: calling getRun/Load/Disk/CurrentState");
getRunStatus();
- getLoadStatus();
- getDiskStatus();
- getCurrentState();
+ $timeout (getLoadStatus,2000);
+ $timeout (getCurrentState,4000);
+ $timeout (getDiskStatus,6000);
$scope.$broadcast('scroll.refreshComplete');
};