mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 19:16:37 +00:00
Some refinements for #501
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
$(document).ready(function() {
|
||||
Grocy.Components.ProductPicker.GetPicker().trigger('change');
|
||||
} );
|
||||
|
||||
$('#save-recipe-button').on('click', function(e)
|
||||
$('#save-recipe-button').on('click', function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
|
||||
@@ -351,15 +347,4 @@ $(window).on("message", function(e)
|
||||
{
|
||||
window.location.href = U('/recipe/' + Grocy.EditObjectId);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
|
||||
{
|
||||
var productId = $(e.target).val();
|
||||
|
||||
if (productId)
|
||||
{
|
||||
Grocy.Components.ProductCard.Refresh(productId);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user