summaryrefslogtreecommitdiff
path: root/www/js/MomentCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2019-07-21 12:43:07 -0400
committerPliable Pixels <pliablepixels@gmail.com>2019-07-21 12:43:07 -0400
commit948974395cc4559cff94802fd9d3ff63a5006819 (patch)
treeeeabebaead5e14eafda882af552f277f0855439e /www/js/MomentCtrl.js
parente8c2483e74b38b3d2f8a1d662574a23a6aabad64 (diff)
remember moment overlay state
Diffstat (limited to 'www/js/MomentCtrl.js')
-rw-r--r--www/js/MomentCtrl.js5
1 files changed, 4 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;