summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/MontageCtrl.js8
-rw-r--r--www/js/NVR.js1
2 files changed, 6 insertions, 3 deletions
diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js
index fa5494ee..2b0d6311 100644
--- a/www/js/MontageCtrl.js
+++ b/www/js/MontageCtrl.js
@@ -5,7 +5,7 @@
/* global cordova,StatusBar,angular,console,ionic,Packery, Draggabilly, imagesLoaded, ConnectSDK, moment */
angular.module('zmApp.controllers')
- .controller('zmApp.MontageCtrl', ['$scope', '$rootScope', 'NVR', '$ionicSideMenuDelegate', '$timeout', '$interval', '$ionicModal', '$ionicLoading', '$http', '$state', '$ionicPopup', '$stateParams', '$ionicHistory', '$ionicScrollDelegate', '$ionicPlatform', 'zm', '$ionicPopover', '$controller', 'imageLoadingDataShare', '$window', '$localstorage', '$translate', 'SecuredPopups', 'EventServer', function ($scope, $rootScope, NVR, $ionicSideMenuDelegate, $timeout, $interval, $ionicModal, $ionicLoading, $http, $state, $ionicPopup, $stateParams, $ionicHistory, $ionicScrollDelegate, $ionicPlatform, zm, $ionicPopover, $controller, imageLoadingDataShare, $window, $localstorage, $translate, SecuredPopups, EventServer) {
+ .controller('zmApp.MontageCtrl', ['$scope', '$rootScope', 'NVR', '$ionicSideMenuDelegate', '$timeout', '$interval', '$ionicModal', '$ionicLoading', '$http', '$state', '$ionicPopup', '$stateParams', '$ionicHistory', '$ionicScrollDelegate', '$ionicPlatform', 'zm', '$ionicPopover', '$controller', 'imageLoadingDataShare', '$window', '$localstorage', '$translate', 'SecuredPopups', 'EventServer', 'message', function ($scope, $rootScope, NVR, $ionicSideMenuDelegate, $timeout, $interval, $ionicModal, $ionicLoading, $http, $state, $ionicPopup, $stateParams, $ionicHistory, $ionicScrollDelegate, $ionicPlatform, zm, $ionicPopover, $controller, imageLoadingDataShare, $window, $localstorage, $translate, SecuredPopups, EventServer, message) {
//---------------------------------------------------------------------
// Controller main
@@ -2232,12 +2232,14 @@ angular.module('zmApp.controllers')
broadcastHandles = [];
randToAvoidCacheMem = new Date().getTime();
- $scope.monitors = NVR.getMonitorsNow();
+
+ $scope.monitors = message;
+ NVR.debug ('Montage beforeEnter: got '+message.length+' monitors');
//console.log ("MONITORS:"+JSON.stringify($scope.monitors));
$scope.MontageMonitors = angular.copy($scope.monitors);
-
+ NVR.debug ('Montage beforeEnter: copying monitors to montage monitors');
$scope.singleMonitorModalOpen = false;
diff --git a/www/js/NVR.js b/www/js/NVR.js
index ef94d5b3..48745f99 100644
--- a/www/js/NVR.js
+++ b/www/js/NVR.js
@@ -2706,6 +2706,7 @@ angular.module('zmApp.controllers')
// send the right list of monitors after registration
// token
getMonitorsNow: function () {
+ debug ('getMonitorsNow: returning '+monitors.length+' monitors');
return monitors;
},