From 8a99167af707f1b5ae6780e9790d15e853911384 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 11 Apr 2019 15:56:52 -0400 Subject: #807 use scope.id - no idea what stateparams.id holds... --- www/js/EventCtrl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'www/js/EventCtrl.js') 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', -- cgit v1.2.3