Skip to content

Commit

Permalink
#1067 fix reorder cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Jul 10, 2021
1 parent df665c3 commit 9a28ba9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions www/js/MontageCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,11 @@ angular.module('zmApp.controllers')

$scope.cancelReorder = function () {
$scope.modal.remove();
ld.packeryPositions = JSON.stringify(beforeReorderPositions);
ld.currentMontageProfile='';
NVR.debug ('Updating positions:'+JSON.stringify(ld.packeryPositions));
ld.currentMontageProfile = "__reorder__";
$scope.currentProfileName = $translate.instant('kMontage');
$timeout ( function () {
finishReorder(true);
},300);
Expand Down Expand Up @@ -2413,6 +2418,7 @@ angular.module('zmApp.controllers')
monitor_found = false;
for (var p=0; p < positions.length; p++) {
if (mon[m].Monitor.Id == positions[p].attr) {
NVR.debug ('Monitor '+positions[p].attr+ ' found in position array');
found = true;
monitor_found = true;
if ( mon[m].Monitor.Function == 'None' && positions[p].display!='noshow') {
Expand Down

0 comments on commit 9a28ba9

Please sign in to comment.