diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2020-09-06 15:26:32 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2020-09-06 15:26:32 -0400 |
| commit | 32e136f5ec7cbbf6838832513ca25a50244cfa74 (patch) | |
| tree | 86641516332469e9c9894bde47627bb8a1cf0ac3 /www/js/EventCtrl.js | |
| parent | 8585728630a2203c9305678fc690d65b93b62a3d (diff) | |
#963 handle no thumbs
Diffstat (limited to 'www/js/EventCtrl.js')
| -rw-r--r-- | www/js/EventCtrl.js | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index acb01b3e..8237f026 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -196,20 +196,26 @@ angular.module('zmApp.controllers') $scope.$on('$ionicView.beforeEnter', function () { - var ld = NVR.getLogin(); - if (ld.eventViewThumbsSize == 'large') { - NVR.debug ('Switching to big thumbs style'); - $scope.thumbClass = 'large'; - $scope.rowHeightRegular = 450; - $scope.rowHeightExpanded = $scope.rowHeightRegular + 230; + if (ld.eventViewThumbs != 'none') { + if (ld.eventViewThumbsSize == 'large') { + NVR.debug ('Switching to big thumbs style'); + $scope.thumbClass = 'large'; + $scope.rowHeightRegular = 450; + $scope.rowHeightExpanded = $scope.rowHeightRegular + 230; + } else { + NVR.debug ('using small thumbs style'); + $scope.thumbClass = 'small'; + $scope.rowHeightRegular = 250; + $scope.rowHeightExpanded = $scope.rowHeightRegular + 200; + + } } else { - NVR.debug ('using small thumbs style'); - $scope.thumbClass = 'small'; - $scope.rowHeightRegular = 250; - $scope.rowHeightExpanded = $scope.rowHeightRegular + 200; - + NVR.debug ('No thumbs'); + $scope.rowHeightRegular = 170; + $scope.rowHeightExpanded = $scope.rowHeightRegular + 200; } + $scope.rowHeight = $scope.rowHeightRegular; $scope.mid = ''; |
