diff options
| author | lucas_nz <lucas_nz@outlook.com> | 2020-09-05 11:41:25 +1200 |
|---|---|---|
| committer | lucas_nz <lucas_nz@outlook.com> | 2020-09-05 11:41:25 +1200 |
| commit | 1139b026aedbc609189a5b3cb7ef446e1ceec09d (patch) | |
| tree | 544f5a45be850d069ee6440274eb5a5a6b0cb00c /www/js/NVR.js | |
| parent | 2f565924960a7487ecc75d504bf2c7b0d4586580 (diff) | |
select event view thumbnails type, replaces enableThumbs in dev options.
Enables selection of different thumbnail types.
If gif is selected limit the number of events returned to 5 to improve load time.
Diffstat (limited to 'www/js/NVR.js')
| -rw-r--r-- | www/js/NVR.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/www/js/NVR.js b/www/js/NVR.js index a9b552e7..5bdc23b9 100644 --- a/www/js/NVR.js +++ b/www/js/NVR.js @@ -188,7 +188,6 @@ angular.module('zmApp.controllers') 'timelineScale': -1, 'hideArchived': false, 'videoPlaybackSpeed': 2, - 'enableThumbs': true, 'enableStrictSSL': false, 'enableSlowLoading': false, 'isFullScreen': false, @@ -1562,10 +1561,9 @@ angular.module('zmApp.controllers') } + if (typeof loginData.eventViewThumbs == 'undefined') { - if (typeof loginData.enableThumbs == 'undefined') { - - loginData.enableThumbs = true; + loginData.eventViewThumbs = 'snapshot'; } @@ -2674,10 +2672,7 @@ angular.module('zmApp.controllers') //console.log("API VERSION RETURNED: " + JSON.stringify(success)); $rootScope.apiValid = true; - if (versionCompare(success.data.version, '1.34.0') != -1) { - debug("objdetect supported in image.php"); - snapshotFrame = 'objdetect'; - } else if (versionCompare(success.data.version, '1.32.0') != -1) { + if (versionCompare(success.data.version, '1.32.0') != -1) { debug("snapshot supported in image.php"); snapshotFrame = 'snapshot'; } else { |
