mirror of
https://github.com/grocy/grocy.git
synced 2026-04-09 22:16:16 +02:00
Renamed variable
This commit is contained in:
parent
6569df79c4
commit
fe0b0cad43
|
|
@ -15,7 +15,7 @@
|
||||||
// Check if the database has changed once a minute
|
// 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,
|
// 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
|
// when there is no unsaved form data and when the user enabled auto reloading
|
||||||
if(DbChangHandlingEnabled)
|
if (Grocy.DbChangedHandlingEnabledForPage)
|
||||||
{
|
{
|
||||||
setInterval(function()
|
setInterval(function()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
@section('title', $__t('Equipment'))
|
@section('title', $__t('Equipment'))
|
||||||
@section('activeNav', 'equipment')
|
@section('activeNav', 'equipment')
|
||||||
@section('viewJsName', 'equipment')
|
@section('viewJsName', 'equipment')
|
||||||
@section('DbChangHandlingEnabled', 'false')
|
@section('DbChangedHandlingEnabledForPage', 'false')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@
|
||||||
@if(file_exists(GROCY_DATAPATH . '/custom_css.html'))
|
@if(file_exists(GROCY_DATAPATH . '/custom_css.html'))
|
||||||
@php include GROCY_DATAPATH . '/custom_css.html' @endphp
|
@php include GROCY_DATAPATH . '/custom_css.html' @endphp
|
||||||
@endif
|
@endif
|
||||||
@section('DbChangHandlingEnabled', 'true')
|
@section('DbChangedHandlingEnabledForPage', 'true')
|
||||||
<script>
|
<script>
|
||||||
var Grocy = { };
|
var Grocy = { };
|
||||||
Grocy.Components = { };
|
Grocy.Components = { };
|
||||||
|
|
@ -96,6 +96,7 @@
|
||||||
Grocy.CalendarShowWeekNumbers = {{ BoolToString(GROCY_CALENDAR_SHOW_WEEK_OF_YEAR) }};
|
Grocy.CalendarShowWeekNumbers = {{ BoolToString(GROCY_CALENDAR_SHOW_WEEK_OF_YEAR) }};
|
||||||
Grocy.GettextPo = {!! $GettextPo !!};
|
Grocy.GettextPo = {!! $GettextPo !!};
|
||||||
Grocy.FeatureFlags = {!! json_encode($featureFlags) !!};
|
Grocy.FeatureFlags = {!! json_encode($featureFlags) !!};
|
||||||
|
Grocy.DbChangedHandlingEnabledForPage = @yield('DbChangedHandlingEnabledForPage');
|
||||||
|
|
||||||
@if (GROCY_AUTHENTICATED)
|
@if (GROCY_AUTHENTICATED)
|
||||||
Grocy.UserSettings = {!! json_encode($userSettings) !!};
|
Grocy.UserSettings = {!! json_encode($userSettings) !!};
|
||||||
|
|
@ -105,7 +106,6 @@
|
||||||
Grocy.UserSettings = { };
|
Grocy.UserSettings = { };
|
||||||
Grocy.UserId = -1;
|
Grocy.UserId = -1;
|
||||||
@endif
|
@endif
|
||||||
const DbChangHandlingEnabled = @yield('DbChangHandlingEnabled');
|
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user