mirror of
https://github.com/grocy/grocy.git
synced 2026-04-06 21:06:15 +02:00
Fix toggle for header-clock
I'm not 100% sure why, but with this change, the listener which calls `CheckHeaderClockEnabled` will be invoked *before* the listener which persists the setting. If the setting is persisted before that, the clock doesn't show up when enabling it in the settings-menu and appears/disappears in the exact opposite way the setting is true/false.
This commit is contained in:
parent
6ffad1d3c7
commit
2b0208e88c
|
|
@ -1,4 +1,4 @@
|
|||
$("#show-clock-in-header").on("change", function()
|
||||
$(document).on("change", "#show-clock-in-header", function()
|
||||
{
|
||||
CheckHeaderClockEnabled();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user