mirror of
https://github.com/grocy/grocy.git
synced 2026-04-07 13:26:14 +02:00
fix amount in recipes ingridients
This commit is contained in:
parent
98f214e9f1
commit
fcb3dcfbb2
|
|
@ -6,6 +6,7 @@ $('#save-recipe-pos-button').on('click', function (e)
|
||||||
|
|
||||||
var jsonData = $('#recipe-pos-form').serializeJSON({ checkboxUncheckedValue: "0" });
|
var jsonData = $('#recipe-pos-form').serializeJSON({ checkboxUncheckedValue: "0" });
|
||||||
jsonData.recipe_id = Grocy.EditObjectParentId;
|
jsonData.recipe_id = Grocy.EditObjectParentId;
|
||||||
|
jsonData.amount = jsonData.amount.replace(/\s/g, '');
|
||||||
delete jsonData.display_amount;
|
delete jsonData.display_amount;
|
||||||
|
|
||||||
Grocy.FrontendHelpers.BeginUiBusy("recipe-pos-form");
|
Grocy.FrontendHelpers.BeginUiBusy("recipe-pos-form");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user