From a3f1e385fc0f5a99d6d19aa6fc2ebfef65533070 Mon Sep 17 00:00:00 2001 From: ARC Date: Wed, 29 Apr 2015 13:32:58 -0400 Subject: added support to refresh image feeds --- www/js/MonitorCtrl.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'www/js/MonitorCtrl.js') diff --git a/www/js/MonitorCtrl.js b/www/js/MonitorCtrl.js index b6705854..8be9bdbe 100644 --- a/www/js/MonitorCtrl.js +++ b/www/js/MonitorCtrl.js @@ -1,6 +1,6 @@ // controller for Monitor View -angular.module('zmApp.controllers').controller('zmApp.MonitorCtrl', function ($scope, ZMDataModel, message,$ionicSideMenuDelegate, $ionicLoading, $ionicModal) { +angular.module('zmApp.controllers').controller('zmApp.MonitorCtrl', function ($scope, ZMDataModel, message,$ionicSideMenuDelegate, $ionicLoading, $ionicModal, $state, $ionicLoading) { $scope.monitors = []; @@ -9,6 +9,17 @@ $scope.openMenu = function () { $ionicSideMenuDelegate.toggleLeft(); } +$scope.reloadView = function () +{ + console.log ("*** Refreshing Modal view ***"); + $scope.rand = Math.floor(Math.random() * (999999 - 111111 + 1)) + 111111; + $ionicLoading.show({ + template: "refreshed view", + noBackdrop: true, + duration: 3000 + }); +} + $scope.$on('$ionicView.loaded', function(){ console.log("**VIEW ** Monitor Ctrl Loaded"); }); -- cgit v1.2.3