diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-04-14 15:30:51 -0400 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-04-14 15:30:51 -0400 |
| commit | d20c33f7cbdc4d0e4b51d2e318616a3b5f1f7150 (patch) | |
| tree | ee18cd8380cfe5520db3dcbd6c049c99169c04fe /www/js/MonitorCtrl.js | |
| parent | e12f173eb5658772f5fc36249e73f2699c4a1f88 (diff) | |
#222 - moveRel code was missing from montageCtrl
Former-commit-id: 2e8ead3d23892b6276fc7615418554258ff071e3
Diffstat (limited to 'www/js/MonitorCtrl.js')
| -rw-r--r-- | www/js/MonitorCtrl.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/www/js/MonitorCtrl.js b/www/js/MonitorCtrl.js index fc0956e2..013c9e79 100644 --- a/www/js/MonitorCtrl.js +++ b/www/js/MonitorCtrl.js @@ -322,17 +322,22 @@ angular.module('zmApp.controllers') $scope.ptzMoveCommand = "move"; // start with as move; $scope.ptzStopCommand = ""; + ZMDataModel.zmDebug ("control PTZ details are " + JSON.stringify(data)); + if (data.control.Control.CanMoveRel == '1') { + $scope.ptzMoveCommand = "moveRel"; $scope.ptzStopCommand = "moveStop"; } // Prefer con over rel if both enabled // I've tested con + if (data.control.Control.CanMoveCon == '1') { + $scope.ptzMoveCommand = "moveCon"; $scope.ptzStopCommand = "moveStop"; } |
