From 9891cd1db9ab8dec88a164eb5584fadcb0894ce0 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 30 Apr 2020 16:06:47 -0400 Subject: add ability to select/deselect all monitors in montage reorder --- www/js/MontageCtrl.js | 12 ++++++++++++ www/templates/reorder-modal.html | 6 ++++-- 2 files changed, 16 insertions(+), 2 deletions(-) (limited to 'www') 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) { diff --git a/www/templates/reorder-modal.html b/www/templates/reorder-modal.html index aecf81bc..2b5f6698 100644 --- a/www/templates/reorder-modal.html +++ b/www/templates/reorder-modal.html @@ -1,9 +1,11 @@

+
- - + + +
-- cgit v1.2.3