fix amount in recipes ingridients

This commit is contained in:
Mikhail Golovanov 2020-06-14 19:19:37 +03:00
parent 98f214e9f1
commit fcb3dcfbb2

View File

@ -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");