summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2019-04-11 15:56:52 -0400
committerPliable Pixels <pliablepixels@gmail.com>2019-04-11 15:56:52 -0400
commit8a99167af707f1b5ae6780e9790d15e853911384 (patch)
tree116c4fe0802f4fe961d5b5732922311123d7a85b
parentbf5aefcd2069cfe94108e6cac29268769a1a28a9 (diff)
#807 use scope.id - no idea what stateparams.id holds...
-rw-r--r--www/js/EventCtrl.js3
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',