diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-12-24 07:19:04 -0500 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-12-24 07:19:04 -0500 |
| commit | 7c05ffe1f5665ca17513343fa5cfb7cb16673f7b (patch) | |
| tree | f489a67bb15d4dcf95188be97a08edd1dd3e165f /www/js/MontageCtrl.js | |
| parent | 89969cf4d6dc308f68efc44d493f9a4a236a24cd (diff) | |
#121 - added a stop button - not really tested...
Former-commit-id: 5e2ddcc44e9d4a282eae4ec6e2cd174b983371ea
Diffstat (limited to 'www/js/MontageCtrl.js')
| -rw-r--r-- | www/js/MontageCtrl.js | 2 |
1 files changed, 2 insertions, 0 deletions
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); }) |
