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 --- config.xml | 3 +++ package.json | 8 ++++++-- www/js/MontageCtrl.js | 12 ++++++++++++ www/templates/reorder-modal.html | 6 ++++-- 4 files changed, 25 insertions(+), 4 deletions(-) diff --git a/config.xml b/config.xml index 0264ff0e..fad7f264 100644 --- a/config.xml +++ b/config.xml @@ -186,6 +186,9 @@ + + + diff --git a/package.json b/package.json index 1696e5ec..97cfc2b9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "zmninjapro", "description": "Home security mobile app for ZoneMinder", - "version": "1.4.004", + "version":"1.4.004", "displayName": "zmNinja", "author": "Pliable Pixels", "license": "custom see LICENSE.md", @@ -61,6 +61,9 @@ "cordova-plugin-inappbrowser": {}, "cordova-plugin-app-version": {}, "cordova-plugin-statusbar-pp-fork": {}, + "cordova-plugin-ionic-webview": { + "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+" + }, "cordova-plugin-media-pp-fork": {} } }, @@ -86,6 +89,7 @@ "cordova-plugin-inappbrowser": "git+https://github.com/apache/cordova-plugin-inappbrowser.git", "cordova-plugin-insomnia": "^4.3.0", "cordova-plugin-ionic-keyboard": "2.2.0", + "cordova-plugin-ionic-webview": "git+https://github.com/pliablepixels/cordova-plugin-ionic-webview.git", "cordova-plugin-media-pp-fork": "^1.0.2-dev", "cordova-plugin-multi-window": "0.0.3", "cordova-plugin-network-information": "^2.0.2", @@ -224,4 +228,4 @@ ] } } -} \ No newline at end of file +} 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