From fe0b0cad436f43d5203bf8393c56867a5b25e650 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Wed, 14 Oct 2020 17:40:02 +0200 Subject: [PATCH] Renamed variable --- public/js/grocy_dbchangedhandling.js | 2 +- views/equipment.blade.php | 2 +- views/layout/default.blade.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/js/grocy_dbchangedhandling.js b/public/js/grocy_dbchangedhandling.js index c6780825..b92e7b3e 100644 --- a/public/js/grocy_dbchangedhandling.js +++ b/public/js/grocy_dbchangedhandling.js @@ -15,7 +15,7 @@ // Check if the database has changed once a minute // If a change is detected, reload the current page, but only if already idling for at least 50 seconds, // when there is no unsaved form data and when the user enabled auto reloading -if(DbChangHandlingEnabled) +if (Grocy.DbChangedHandlingEnabledForPage) { setInterval(function() { diff --git a/views/equipment.blade.php b/views/equipment.blade.php index 811b9bfb..57062764 100644 --- a/views/equipment.blade.php +++ b/views/equipment.blade.php @@ -3,7 +3,7 @@ @section('title', $__t('Equipment')) @section('activeNav', 'equipment') @section('viewJsName', 'equipment') -@section('DbChangHandlingEnabled', 'false') +@section('DbChangedHandlingEnabledForPage', 'false') @section('content')
diff --git a/views/layout/default.blade.php b/views/layout/default.blade.php index d29f4a35..9d11932f 100644 --- a/views/layout/default.blade.php +++ b/views/layout/default.blade.php @@ -82,7 +82,7 @@ @if(file_exists(GROCY_DATAPATH . '/custom_css.html')) @php include GROCY_DATAPATH . '/custom_css.html' @endphp @endif - @section('DbChangHandlingEnabled', 'true') + @section('DbChangedHandlingEnabledForPage', 'true')