From 20e35612d7577fb8616bf95cdeacdbc8c8b6a290 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Wed, 30 Oct 2019 13:38:18 -0400 Subject: don't waste a N/W call with ZM_EVENT_DIGITS just make it 5 --- www/js/NVR.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'www') diff --git a/www/js/NVR.js b/www/js/NVR.js index 71d58df1..0e057c57 100644 --- a/www/js/NVR.js +++ b/www/js/NVR.js @@ -2420,7 +2420,11 @@ angular.module('zmApp.controllers') getKeyConfigParams: function (forceReload) { var d = $q.defer(); + configParams.ZM_EVENT_IMAGE_DIGITS = 5; + d.resolve(configParams.ZM_EVENT_IMAGE_DIGITS); + return (d.promise); + /* if (forceReload == 1 || configParams.ZM_EVENT_IMAGE_DIGITS == '-1') { var apiurl = loginData.apiurl; var myurl = apiurl + '/configs/viewByName/ZM_EVENT_IMAGE_DIGITS.json?' + $rootScope.authSession; @@ -2448,7 +2452,7 @@ angular.module('zmApp.controllers') return (d.promise); } return (d.promise); - + */ }, //-------------------------------------------------------------------------- -- cgit v1.2.3