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')