Little changes for #551

This commit is contained in:
Bernd Bestel
2020-02-09 15:36:03 +01:00
parent a0ab5c5e94
commit 0359003e09
6 changed files with 19 additions and 3 deletions

View File

@@ -383,8 +383,8 @@ if (window.location.hash === "#compact")
$("#shopping-list-compact-view-button").click();
}
// Auto switch to compact view on mobile
if ($(window).width() < 768 & window.location.hash !== "#compact" && !BoolVal(Grocy.UserSettings.shopping_list_disable_auto_compact_view))
// Auto switch to compact view on mobile when enabled
if ($(window).width() < 768 & window.location.hash !== "#compact" && !BoolVal(Grocy.UserSettings.shopping_list_disable_auto_compact_view_on_mobile))
{
$("#shopping-list-compact-view-button").click();
}

View File

@@ -7,3 +7,8 @@ if (BoolVal(Grocy.UserSettings.shopping_list_show_calendar))
{
$("#shopping-list-show-calendar").prop("checked", true);
}
if (BoolVal(Grocy.UserSettings.shopping_list_disable_auto_compact_view_on_mobile))
{
$("#shopping-list-disable-auto-compact-view-on-mobile").prop("checked", true);
}