diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-04-27 08:25:32 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-04-27 08:25:32 -0400 |
| commit | 9e177014dd991ae01f0430b0d9bbfc5d09f71a02 (patch) | |
| tree | 1b6d0017b90d06c596796d7d32060df9b7e9fa0f /www/js | |
| parent | 261d04bd79edd9174a1b2f3709ce22b100a2e3a4 (diff) | |
fixed montage swap for snapshot mode, color is blue when cycle is on
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/MontageCtrl.js | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index 16bf149a..729c2036 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -604,7 +604,7 @@ angular.module('zmApp.controllers') function loadNotifications() { if (simulStreaming) { - console.log ("Skipping timer as simulStreaming"); + // console.log ("Skipping timer as simulStreaming"); return; } @@ -706,6 +706,10 @@ angular.module('zmApp.controllers') }, 20); } + $scope.isCycleOn = function() { + return NVRDataModel.getLogin().cycleMontageProfiles; + } + $scope.getCycleStatus = function () { var c = NVRDataModel.getLogin().cycleMontageProfiles; var str = (c) ? $translate.instant('kOn') : $translate.instant('kOff'); @@ -1460,12 +1464,12 @@ angular.module('zmApp.controllers') //console.log ("NEW POS="+ld.packeryPositions); NVRDataModel.setLogin(ld); - currentStreamState = streamState.STOPPED; + $timeout(function () { // after render if (simulStreaming) { - + currentStreamState = streamState.STOPPED; NVRDataModel.debug("Killing all streams in montage to save memory/nw..."); if ($rootScope.platformOS == 'ios') { @@ -1493,6 +1497,14 @@ angular.module('zmApp.controllers') } + else { + NVRDataModel.regenConnKeys(); + $scope.monitors = NVRDataModel.getMonitorsNow(); + $scope.MontageMonitors = angular.copy($scope.monitors); + $timeout(function () { + initPackery(); + }, zm.packeryTimer); + } |
