diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-01-05 14:06:56 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-01-05 14:06:56 -0500 |
| commit | 55c5be3821cdbb58f90547bf85406f01efdf12c9 (patch) | |
| tree | 94edbe92f62013b57f618ca43751462f7c34a4bc /www/js | |
| parent | 5495be9279d5a6dff62d24fd248d9c6c0e47bd30 (diff) | |
handled event reload when within events - state.go seems wonky
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/EventCtrl.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 1543d5d6..efc98d27 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -90,6 +90,7 @@ angular.module('zmApp.controllers') $scope.$on('$ionicView.afterEnter', function() { + console.log ("********* AFTER ENTER"); // $ionicListDelegate.canSwipeItems(true); @@ -1153,11 +1154,12 @@ angular.module('zmApp.controllers') //---------------------------------------------------------------- $scope.handleAlarms = function() { - $rootScope.isAlarm = !$rootScope.isAlarm; - if (!$rootScope.isAlarm) + // $rootScope.isAlarm = !$rootScope.isAlarm; + if ($rootScope.isAlarm) { $rootScope.alarmCount = "0"; - $ionicHistory.nextViewOptions( + $rootScope.isAlarm = !$rootScope.isAlarm; + /*$ionicHistory.nextViewOptions( { disableBack: true }); @@ -1168,7 +1170,8 @@ angular.module('zmApp.controllers') }, { reload: true - }); + }); */ + getInitialEvents(); return; } }; |
