summaryrefslogtreecommitdiff
path: root/www/js/EventCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2020-09-13 09:11:37 -0400
committerPliable Pixels <pliablepixels@gmail.com>2020-09-13 09:11:37 -0400
commitbb3e57c2304d7363575eea5c7ed102a16df63029 (patch)
tree9ad222d2bc60b58e374f07c8dc3ff5af99247744 /www/js/EventCtrl.js
parentce49d21e612fd0907351930e49041fa01425e4de (diff)
also put large/small thumbs option in event view menu
Diffstat (limited to 'www/js/EventCtrl.js')
-rw-r--r--www/js/EventCtrl.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js
index 159a0451..64d2e724 100644
--- a/www/js/EventCtrl.js
+++ b/www/js/EventCtrl.js
@@ -3467,6 +3467,20 @@ angular.module('zmApp.controllers')
};
+ $scope.toggleThumbSize = function() {
+ var ld = NVR.getLogin();
+ ld.eventViewThumbsSize = (ld.eventViewThumbsSize == 'large')?'small':'large';
+ NVR.setLogin(ld);
+ $scope.loginData = ld;
+ recomputeRowHeights();
+ // $scope.$apply();
+ $ionicScrollDelegate.resize();
+ // $scope.eventsBeingLoaded = true;
+ $timeout (function() {
+ navTitle();
+ },300);
+ };
+
$scope.toggleObjectDetectionFilter = function () {
var ld = NVR.getLogin();