From 05638adb21a0f13715e2f1390c4b85e972779e9a Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Fri, 21 Aug 2015 11:09:08 -0400 Subject: ionic content banner is being used for useful status displays --- www/js/MontageCtrl.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'www/js/MontageCtrl.js') diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index 1620472d..c8490627 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -13,6 +13,7 @@ angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', ['$scope', ' console.log("******** HAVE ALL MONITORS"); $scope.monitors = message; + ZMDataModel.zmLog ("Inside Montage Ctrl:We found " + $scope.monitors.length + " monitors"); document.addEventListener("pause", onPause, false); document.addEventListener("resume", onResume, false); @@ -595,7 +596,7 @@ angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', ['$scope', ' } else // modal is active { - $rootScope.modalRand = Math.floor((Math.random() * 100000) + 1); + // $rootScope.modalRand = Math.floor((Math.random() * 100000) + 1); } @@ -706,9 +707,16 @@ angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', ['$scope', ' // $rootScope.rand = Math.floor((Math.random() * 100000) + 1); }); - + $scope.reloadView = function() + { + $rootScope.rand = Math.floor((Math.random() * 100000) + 1); + ZMDataModel.zmLog ("User action: image reload " + $rootScope.rand); + }; $scope.doRefresh = function () { + + + console.log("***Pull to Refresh, recomputing Rand"); ZMDataModel.zmLog ("Reloading view for montage view, recomputing rand"); $rootScope.rand = Math.floor((Math.random() * 100000) + 1); -- cgit v1.2.3