summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/js/MomentCtrl.js5
-rw-r--r--www/js/NVR.js8
2 files changed, 12 insertions, 1 deletions
diff --git a/www/js/MomentCtrl.js b/www/js/MomentCtrl.js
index 79454c33..38edb4e4 100644
--- a/www/js/MomentCtrl.js
+++ b/www/js/MomentCtrl.js
@@ -817,6 +817,9 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$
$scope.toggleIcons = function () {
$scope.showIcons = !$scope.showIcons;
+ ld = NVR.getLogin();
+ ld.momentShowIcons = $scope.showIcons;
+ NVR.setLogin(ld);
};
//----------------------------------------------------------------
@@ -843,7 +846,7 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$
masonry = null;
var ld = NVR.getLogin();
- $scope.showIcons = true;
+ $scope.showIcons = ld.momentShowIcons;
$scope.areImagesLoading = true;
diff --git a/www/js/NVR.js b/www/js/NVR.js
index 41cb3118..8bd6e283 100644
--- a/www/js/NVR.js
+++ b/www/js/NVR.js
@@ -184,6 +184,7 @@ angular.module('zmApp.controllers')
'momentGridSize': 40,
'momentMonitorFilter': [],
'enableMomentSubMenu': true,
+ 'momentShowIcons':false,
'momentArrangeBy': 'StartTime',
'showLiveForInProgressEvents': true,
'disableSimulStreaming': false,
@@ -1352,6 +1353,13 @@ angular.module('zmApp.controllers')
}
+ if (typeof loginData.momentShowIcons == 'undefined') {
+
+ loginData.momentShowIcons = true;
+
+ }
+
+
if (typeof loginData.momentMonitorFilter == 'undefined') {
loginData.momentMonitorFilter = JSON.stringify([]);