Properly initialize show_clock_in_header user setting control after page reload

This commit is contained in:
Bernd Bestel 2018-11-20 19:34:06 +01:00
parent f7f90238f2
commit c61c37e67a
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -35,3 +35,8 @@ function CheckHeaderClockEnabled()
}
}
CheckHeaderClockEnabled();
if (BoolVal(Grocy.UserSettings.show_clock_in_header))
{
$("#show-clock-in-header").prop("checked", true);
}