mirror of
https://github.com/grocy/grocy.git
synced 2025-08-24 14:06:44 +00:00
Start working on recipes feature
This commit is contained in:
@@ -49,6 +49,11 @@ $('.combobox').combobox({
|
||||
});
|
||||
|
||||
var prefillProduct = GetUriParam('createdproduct');
|
||||
var prefillProduct2 = Grocy.Components.ProductPicker.GetPicker().parent().data('prefill-by-name').toString();
|
||||
if (!prefillProduct2.isEmpty())
|
||||
{
|
||||
prefillProduct = prefillProduct2;
|
||||
}
|
||||
if (typeof prefillProduct !== "undefined")
|
||||
{
|
||||
var possibleOptionElement = $("#product_id option[data-additional-searchdata*='" + prefillProduct + "']").first();
|
||||
|
Reference in New Issue
Block a user