From 7c05ffe1f5665ca17513343fa5cfb7cb16673f7b Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Thu, 24 Dec 2015 07:19:04 -0500 Subject: #121 - added a stop button - not really tested... Former-commit-id: 5e2ddcc44e9d4a282eae4ec6e2cd174b983371ea --- www/js/MontageCtrl.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'www/js/MontageCtrl.js') diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index ae9a9680..d3a0928a 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -556,6 +556,7 @@ angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', ['$scope', ' $scope.LoginData = ZMDataModel.getLogin(); $rootScope.modalRand = Math.floor(Math.random() * (999999 - 111111 + 1)) + 111111; $scope.ptzMoveCommand = ""; + $scope.ptzStopCommand = ""; // This is a modal to show the monitor footage // We need to switch to always awake if set so the feed doesn't get interrupted @@ -572,6 +573,7 @@ angular.module('zmApp.controllers').controller('zmApp.MontageCtrl', ['$scope', ' .success(function (data) { ZMDataModel.zmDebug("MontageCtrl: control data returned " + JSON.stringify(data)); $scope.ptzMoveCommand = (data.control.Control.CanMoveCon == '1') ? 'moveCon' : 'move'; + $scope.ptzStopCommand = "moveStop"; console.log("***moveCommand: " + $scope.ptzMoveCommand); ZMDataModel.zmLog("ControlDB reports PTZ command to be " + $scope.ptzMoveCommand); }) -- cgit v1.2.3