mirror of
https://github.com/grocy/grocy.git
synced 2025-08-24 14:06:44 +00:00
UI test/review
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
function saveRecipePicture(result, location, jsonData)
|
||||
{
|
||||
$recipeId = Grocy.EditObjectId || result.created_object_id;
|
||||
var recipeId = Grocy.EditObjectId || result.created_object_id;
|
||||
Grocy.Components.UserfieldsForm.Save(() =>
|
||||
{
|
||||
if (jsonData.hasOwnProperty("picture_file_name") && !Grocy.DeleteRecipePictureOnSave)
|
||||
@@ -8,7 +8,7 @@
|
||||
Grocy.Api.UploadFile($("#recipe-picture")[0].files[0], 'recipepictures', jsonData.picture_file_name,
|
||||
(result) =>
|
||||
{
|
||||
window.location.href = U(location + $recipeId);
|
||||
window.location.href = U(location + recipeId);
|
||||
},
|
||||
(xhr) =>
|
||||
{
|
||||
@@ -19,7 +19,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
window.location.href = U(location + $recipeId);
|
||||
window.location.href = U(location + recipeId);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user