summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/js/EventCtrl.js11
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;
}
};