From e490bd7804952572362e56a163f46ca76fd07366 Mon Sep 17 00:00:00 2001 From: ARC Date: Wed, 29 Apr 2015 15:39:38 -0400 Subject: changed nph-zms to zms - seems to be more predictable --- www/js/EventCtrl.js | 52 ++++++++++++++++++++++++---------------------------- 1 file changed, 24 insertions(+), 28 deletions(-) (limited to 'www/js/EventCtrl.js') 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 }); - - - -- cgit v1.2.3