diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2020-04-30 16:06:47 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2020-04-30 16:06:47 -0400 |
| commit | 9891cd1db9ab8dec88a164eb5584fadcb0894ce0 (patch) | |
| tree | 17ecd6b862ba734442e872ecf11b5893803fe4eb /www/js | |
| parent | 50c2a8ab5276c72b7f17f60a069eedb1391f692a (diff) | |
add ability to select/deselect all monitors in montage reorder
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/MontageCtrl.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index 518a2687..6facc5be 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -919,6 +919,10 @@ angular.module('zmApp.controllers') if ($scope.MontageMonitors[i].Monitor.listDisplay == 'show') NVR.killLiveStream($scope.MontageMonitors[i].Monitor.connKey, $scope.MontageMonitors[i].Monitor.controlURL); } // in context of timeout + $scope.reorder = { + selected:false + }; + $ionicModal.fromTemplateUrl('templates/reorder-modal.html', { scope: $scope, animation: 'slide-in-up', @@ -949,6 +953,14 @@ angular.module('zmApp.controllers') }; + $scope.selectUnselectAllToggleReorder = function () { + $scope.reorder.selected = !$scope.reorder.selected; + + for (var i=0; i < $scope.copyMontage.length; i++) { + $scope.copyMontage[i].Monitor.listDisplay = $scope.reorder.selected ? 'show':'noshow'; + } + + }; $scope.$on('modal.removed', function (e, m) { |
