diff options
| author | root <root@term.(none)> | 2016-08-22 13:40:06 +0200 |
|---|---|---|
| committer | root <root@term.(none)> | 2016-08-22 13:40:06 +0200 |
| commit | 25e440861a7c31877f7ad0d4992cc0de6c0dce02 (patch) | |
| tree | cd7409030d86e5156544bb1c5ac61feb61aa65bb /www/js/MonitorModalCtrl.js | |
| parent | 5afcaac8873cd91a3c760e5982b60db374608fd4 (diff) | |
Added Wake-Sleep-Reset control commands
Former-commit-id: 8ddfeea854f40464f43375a4f14dc11de92c4d30
Diffstat (limited to 'www/js/MonitorModalCtrl.js')
| -rw-r--r-- | www/js/MonitorModalCtrl.js | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/www/js/MonitorModalCtrl.js b/www/js/MonitorModalCtrl.js index e4912294..e51f5af3 100644 --- a/www/js/MonitorModalCtrl.js +++ b/www/js/MonitorModalCtrl.js @@ -1031,6 +1031,10 @@ angular.module('zmApp.controllers').controller('MonitorModalCtrl', ['$scope', '$ // function configurePTZ(mid) { + $scope.ptzWakeCommand = ""; + $scope.ptzSleepCommand = ""; + $scope.ptzResetCommand = ""; + $scope.ptzMoveCommand = ""; $scope.ptzStopCommand = ""; @@ -1060,6 +1064,21 @@ angular.module('zmApp.controllers').controller('MonitorModalCtrl', ['$scope', '$ $http.get(myurl) .success(function (data) { + if (data.control.Control.CanWake == '1') + { + $scope.ptzWakeCommand = 'wake'; + } + + if (data.control.Control.CanSleep == '1') + { + $scope.ptzSleepCommand = 'sleep'; + } + + if (data.control.Control.CanReset == '1') + { + $scope.ptzResetCommand = 'reset'; + } + $scope.ptzMoveCommand = "move"; // start with as move; $scope.ptzStopCommand = ""; @@ -1174,4 +1193,4 @@ angular.module('zmApp.controllers').controller('MonitorModalCtrl', ['$scope', '$ }); -}]);
\ No newline at end of file +}]); |
