mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Fixed a rounding regarding stock amount comparison when a (scaled) recipe needs a decimal amount (closes #164)
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
Grocy.Api.UploadFile($("#recipe-picture")[0].files[0], 'recipepictures', jsonData.picture_file_name,
|
||||
function(result)
|
||||
{
|
||||
window.location.href = U('/recipes');
|
||||
window.location.href = U('/recipes?recipe=' + Grocy.EditObjectId);
|
||||
},
|
||||
function (xhr)
|
||||
{
|
||||
@@ -47,7 +47,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
window.location.href = U('/recipes');
|
||||
window.location.href = U('/recipes?recipe=' + Grocy.EditObjectId);
|
||||
}
|
||||
},
|
||||
function(xhr)
|
||||
|
Reference in New Issue
Block a user