mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 19:37:12 +00:00
Use producamountpicker "everywhere" (closes #1015)
This commit is contained in:
@@ -65,6 +65,13 @@ Grocy.Components.ProductAmountPicker.AllowAnyQu = function(keepInitialQu = false
|
||||
$(".input-group-productamountpicker").trigger("change");
|
||||
}
|
||||
|
||||
Grocy.Components.ProductAmountPicker.Reset = function()
|
||||
{
|
||||
$("#qu_id").find("option").remove();
|
||||
$("#qu-conversion-info").addClass("d-none");
|
||||
$("#qu-display_amount-info").val("");
|
||||
}
|
||||
|
||||
$(".input-group-productamountpicker").on("change", function()
|
||||
{
|
||||
var destinationQuName = $("#qu_id").attr("data-destination-qu-name");
|
||||
|
Reference in New Issue
Block a user