Clarify that "Group by product group" (printing a shopping list) works only for the list layout type (closes #1405)

This commit is contained in:
Bernd Bestel
2021-07-06 19:48:55 +02:00
parent 135ac118b0
commit 6530d0f9df

View File

@@ -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()
{
$("#save-description-button").removeClass("disabled");