diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2019-04-11 15:56:52 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2019-04-11 15:56:52 -0400 |
| commit | 8a99167af707f1b5ae6780e9790d15e853911384 (patch) | |
| tree | 116c4fe0802f4fe961d5b5732922311123d7a85b /www | |
| parent | bf5aefcd2069cfe94108e6cac29268769a1a28a9 (diff) | |
#807 use scope.id - no idea what stateparams.id holds...
Diffstat (limited to 'www')
| -rw-r--r-- | www/js/EventCtrl.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index b8a59e28..9a2372a1 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -2657,7 +2657,7 @@ angular.module('zmApp.controllers') NVR.setAwake(NVR.getKeepAwake()); $scope.currentEvent = event; - $scope.followSameMonitor = ($stateParams.id == "0") ? "0" : "1"; + $scope.followSameMonitor = ($scope.id == "0") ? "0" : "1"; var ld = NVR.getLogin(); var sl = 'disabled'; @@ -2665,6 +2665,7 @@ angular.module('zmApp.controllers') sl = 'enabled'; } + console.log (">>>>>>>>>>>>>> FOLLOW?"+$scope.followSameMonitor); $ionicModal.fromTemplateUrl('templates/events-modal.html', { scope: $scope, animation: 'slide-in-up', |
