diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-05-02 12:05:15 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-05-02 12:05:15 -0400 |
| commit | f82debadf0e7f7ade08cf771237ac96c41c0a839 (patch) | |
| tree | 7b385aa6ce44d584309551c3ccd19e83f6d8232a /www/js/PortalLoginCtrl.js | |
| parent | 6fba981549765b2e8ef8cb0022a791e7947d125a (diff) | |
wait for platform ready on notification #604
Diffstat (limited to 'www/js/PortalLoginCtrl.js')
| -rw-r--r-- | www/js/PortalLoginCtrl.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/www/js/PortalLoginCtrl.js b/www/js/PortalLoginCtrl.js index 8e9d73e9..b2d75dc9 100644 --- a/www/js/PortalLoginCtrl.js +++ b/www/js/PortalLoginCtrl.js @@ -294,7 +294,8 @@ angular.module('zmApp.controllers').controller('zmApp.PortalLoginCtrl', ['$ionic } - var pp = $scope.$on("process-push", function () { + //this needs to be rootScope so it lives even when we are out of view + var pp = $rootScope.$on("process-push", function () { NVRDataModel.debug("*** PROCESS PUSH HANDLER CALLED INSIDE PORTAL LOGIN, setting ProcessPush to true"); processPush = true; evaluateTappedNotification(); |
