diff options
| author | ARC <arjunrc@gmail.com> | 2015-04-29 15:39:38 -0400 |
|---|---|---|
| committer | ARC <arjunrc@gmail.com> | 2015-04-29 15:39:38 -0400 |
| commit | e490bd7804952572362e56a163f46ca76fd07366 (patch) | |
| tree | ba7b73421232316bbe3c96864aab3ee7547cb5a9 /www/js/EventCtrl.js | |
| parent | a3f1e385fc0f5a99d6d19aa6fc2ebfef65533070 (diff) | |
changed nph-zms to zms - seems to be more predictable
Diffstat (limited to 'www/js/EventCtrl.js')
| -rw-r--r-- | www/js/EventCtrl.js | 52 |
1 files changed, 24 insertions, 28 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 49475029..374b5735 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -11,37 +11,36 @@ angular.module('zmApp.controllers').controller('zmApp.EventCtrl', function ($ion $ionicSideMenuDelegate.toggleLeft(); } -$scope.reloadView = function () -{ - console.log ("*** Refreshing Modal view ***"); - //$state.go($state.current, {}, {reload: true}); - $scope.rand = Math.floor(Math.random() * (999999 - 111111 + 1)) + 111111; - $ionicLoading.show({ - template: "refreshed view", - noBackdrop: true, - duration: 3000 - }); + $scope.reloadView = function () { + console.log("*** Refreshing Modal view ***"); + //$state.go($state.current, {}, {reload: true}); + $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 ** Events Ctrl Loaded"); - }); + $scope.$on('$ionicView.loaded', function () { + console.log("**VIEW ** Events Ctrl Loaded"); + }); - $scope.$on('$ionicView.enter', function(){ - console.log("**VIEW ** Events Ctrl Entered"); - }); + $scope.$on('$ionicView.enter', function () { + console.log("**VIEW ** Events Ctrl Entered"); + }); - $scope.$on('$ionicView.leave', function(){ - console.log("**VIEW ** Events Ctrl Left"); - }); + $scope.$on('$ionicView.leave', function () { + console.log("**VIEW ** Events Ctrl Left"); + }); - $scope.$on('$ionicView.unloaded', function(){ - console.log("**VIEW ** Events Ctrl Unloaded"); - console.log ("*** MODAL ** Destroying modal too"); - $scope.modal.remove(); + $scope.$on('$ionicView.unloaded', function () { + console.log("**VIEW ** Events Ctrl Unloaded"); + console.log("*** MODAL ** Destroying modal too"); + $scope.modal.remove(); - }); + }); // This is a modal to show the event footage @@ -218,6 +217,3 @@ $scope.reloadView = function () }; //dorefresh }); - - - |
