diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-18 20:30:10 -0400 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-18 20:30:10 -0400 |
| commit | bb84be87aca232087b4ec067d5686a0739dfec5c (patch) | |
| tree | c0d027b6cf1fee97c8235c132c75a83f3decbd0c /www/js/EventCtrl.js | |
| parent | f29fb9f31d41d325745574257507668bc505471e (diff) | |
https://github.com/pliablepixels/zmNinja/issues/46
Diffstat (limited to 'www/js/EventCtrl.js')
| -rw-r--r-- | www/js/EventCtrl.js | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 09d75c92..76d0937a 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -113,7 +113,10 @@ angular.module('zmApp.controllers') console.log("***CALLING EVENTS FACTORY"); var lData = ZMDataModel.getLogin(); - if (lData.persistMontageOrder) + var stackState = $ionicHistory.backTitle(); + + // If you came from Monitors, disregard hidden monitors in montage + if (lData.persistMontageOrder && stackState != "Monitors") { var tempMon = message; $scope.monitors = ZMDataModel.applyMontageMonitorPrefs (tempMon, 2)[0]; @@ -825,6 +828,14 @@ angular.module('zmApp.controllers') $scope.$on('$ionicView.enter', function () { console.log("**VIEW ** Events Ctrl Entered"); ZMDataModel.setAwake(false); + + EventServer.sendMessage('push', + { + type:'badge', + badge:0, + }); + + //reset badge count $cordovaBadge.set(0).then(function() { // You have permission, badge set. @@ -1527,7 +1538,8 @@ angular.module('zmApp.controllers') if (idfound) { - $scope.events.push(myevents); + //console.log ("***********************PUSHING RELOAD EVENT " + JSON.stringify(myevents)); + $scope.events.push(myevents[i]); } } // $scope.events = myevents; |
