summaryrefslogtreecommitdiff
path: root/www/js/MonitorCtrl.js
diff options
context:
space:
mode:
authorARC <arjunrc@gmail.com>2015-05-01 14:52:22 -0400
committerARC <arjunrc@gmail.com>2015-05-01 14:52:22 -0400
commit9faf95be527b8b7c23e4ed4226c35bb771129f41 (patch)
tree6d5baa8fc0b2a06d2ccb46ad9be75cce64bc34e8 /www/js/MonitorCtrl.js
parentbcdc2629d7b289c48776169c350d8da3b74f64d4 (diff)
Made various tweaks to config files and code to make things work on Android. Using crosswalk for Android for better performance
Diffstat (limited to 'www/js/MonitorCtrl.js')
-rw-r--r--www/js/MonitorCtrl.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/www/js/MonitorCtrl.js b/www/js/MonitorCtrl.js
index def65266..4e217464 100644
--- a/www/js/MonitorCtrl.js
+++ b/www/js/MonitorCtrl.js
@@ -16,25 +16,26 @@ $scope.reloadView = function ()
$ionicLoading.show({
template: "refreshed view",
noBackdrop: true,
- duration: 3000
+ duration: 2000
});
}
-$scope.initLoadingImage = function()
+$scope.isSimulated = function () {
+ return ZMDataModel.isSimulated();
+ };
+
+
+$scope.finishedLoadingImage = function()
{
- console.log ("***Loading***");
+ console.log ("***Monitor image FINISHED Loading***");
+ $ionicLoading.hide();
/* $ionicLoading.show({
template: "loading, please wait...",
noBackdrop: true,
});*/
}
-
- $scope.finishedLoadingImage = function()
- {
- $ionicLoading.hide();
- // alert ("IMAGE LOADED");
- }
+
$scope.$on('$ionicView.loaded', function(){
console.log("**VIEW ** Monitor Ctrl Loaded");