diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-10-08 11:19:26 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-10-08 11:19:26 -0400 |
| commit | 62c77d57097915a6051132b18cd767bb356323e5 (patch) | |
| tree | 85b0bd6cec5b84fb89d041aa1b21b08817f1d233 /www | |
| parent | 65491396c1d258144e9e5f0a7bb6a1f41e43a079 (diff) | |
don't cycle if you only have one or less
Diffstat (limited to 'www')
| -rw-r--r-- | www/js/MonitorModalCtrl.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/www/js/MonitorModalCtrl.js b/www/js/MonitorModalCtrl.js index 7c363b7a..cc110197 100644 --- a/www/js/MonitorModalCtrl.js +++ b/www/js/MonitorModalCtrl.js @@ -897,10 +897,20 @@ angular.module('zmApp.controllers').controller('MonitorModalCtrl', ['$scope', '$ function moveToMonitor(m, d) { - $scope.animationInProgress = true; + if ($scope.isZoneEdit) { NVRDataModel.log("Not cycling, as you are editing zones"); + return; + } + + if ($scope.monitors.length <= 1) { + NVRDataModel.log("Not cycling, as you only have at most 1 monitors"); + return; } + + + + $scope.animationInProgress = true; var curstate = $ionicHistory.currentStateName(); var found = 0; var mid; |
