mirror of
https://github.com/grocy/grocy.git
synced 2025-10-12 16:44:55 +00:00
Improvements (#1049)
* Fixes #1035: Check available amount after filtering by stock_entry_id * Fixes #1036: Remove stock-related buttons/options from Shopping-list if FEATURE_FLAG_STOCK is disabled * Fixes #1010: Repair recipe-picture upload. * Fixes #958: Disable auto-reload of equipments-page. * Fix uncaught exception in locationpicker.js * Fixes #761 and #762: Add "Remove exact amount" for products with tare weight handling and use it for recipe-consumption. * Fixes #1048: Repair product-group-filter on "Master Data"/Products * Renamed variable Co-authored-by: Bernd Bestel <bernd@berrnd.de>
This commit is contained in:
committed by
GitHub
parent
a66a4d0c22
commit
a85998dd40
@@ -1,4 +1,4 @@
|
||||
function saveRecipePicture(result, location)
|
||||
function saveRecipePicture(result, location, jsonData)
|
||||
{
|
||||
$recipeId = Grocy.EditObjectId || result.created_object_id;
|
||||
Grocy.Components.UserfieldsForm.Save(() =>
|
||||
@@ -43,7 +43,7 @@ $('.save-recipe').on('click', function(e)
|
||||
{
|
||||
console.log(jsonData);
|
||||
Grocy.Api.Post('objects/recipes', jsonData,
|
||||
(result) => saveRecipePicture(result, location));
|
||||
(result) => saveRecipePicture(result, location, jsonData));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ $('.save-recipe').on('click', function(e)
|
||||
}
|
||||
|
||||
Grocy.Api.Put('objects/recipes/' + Grocy.EditObjectId, jsonData,
|
||||
(result) => saveRecipePicture(result, location),
|
||||
(result) => saveRecipePicture(result, location, jsonData),
|
||||
function(xhr)
|
||||
{
|
||||
Grocy.FrontendHelpers.EndUiBusy("recipe-form");
|
||||
|
Reference in New Issue
Block a user