mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Little changes for #551
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user