mirror of
https://github.com/grocy/grocy.git
synced 2025-10-12 16:44:55 +00:00
dialogs for shopping list (#1103)
This commit is contained in:
@@ -447,3 +447,13 @@ if ($(window).width() < 768 & window.location.hash !== "#compact" && !BoolVal(Gr
|
||||
{
|
||||
$("#shopping-list-compact-view-button").click();
|
||||
}
|
||||
|
||||
$(window).on("message", function(e)
|
||||
{
|
||||
var data = e.originalEvent.data;
|
||||
|
||||
if (data.Message === "ShoppingListChanged")
|
||||
{
|
||||
window.location.href = U('/shoppinglist?list=' + data.Payload);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user