diff options
| author | ARC <arjunrc@gmail.com> | 2015-04-29 13:32:58 -0400 |
|---|---|---|
| committer | ARC <arjunrc@gmail.com> | 2015-04-29 13:32:58 -0400 |
| commit | a3f1e385fc0f5a99d6d19aa6fc2ebfef65533070 (patch) | |
| tree | 794e48eb5d92e5c654942a971a967d446e1b2348 /www/js/MonitorCtrl.js | |
| parent | 1a57eaad4dd25afc1f59c83968bcd408300a1270 (diff) | |
added support to refresh image feeds
Diffstat (limited to 'www/js/MonitorCtrl.js')
| -rw-r--r-- | www/js/MonitorCtrl.js | 13 |
1 files changed, 12 insertions, 1 deletions
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"); }); |
