mirror of
https://github.com/grocy/grocy.git
synced 2025-09-01 18:57:34 +00:00
Clarify that "Group by product group" (printing a shopping list) works only for the list layout type (closes #1405)
This commit is contained in:
@@ -531,6 +531,19 @@ $(document).on("click", "#print-shopping-list-button", function(e)
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).on("change", "input[name='print-layout-type']", function(e)
|
||||||
|
{
|
||||||
|
if (this.value == "print-layout-type-list")
|
||||||
|
{
|
||||||
|
$("#print-group-by-product-group").prop("checked", false);
|
||||||
|
$("#print-group-by-product-group").attr("disabled", "");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$("#print-group-by-product-group").removeAttr("disabled");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$("#description").on("summernote.change", function()
|
$("#description").on("summernote.change", function()
|
||||||
{
|
{
|
||||||
$("#save-description-button").removeClass("disabled");
|
$("#save-description-button").removeClass("disabled");
|
||||||
|
Reference in New Issue
Block a user