mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 11:27:03 +00:00
Fixed single quotes problem in all pickers (fixes #264)
This commit is contained in:
@@ -43,7 +43,7 @@ $('.recipe-combobox').combobox({
|
||||
var prefillByName = Grocy.Components.RecipePicker.GetPicker().parent().data('prefill-by-name').toString();
|
||||
if (typeof prefillByName !== "undefined")
|
||||
{
|
||||
possibleOptionElement = $("#recipe_id option:contains('" + prefillByName + "')").first();
|
||||
possibleOptionElement = $("#recipe_id option:contains(\"" + prefillByName + "\")").first();
|
||||
|
||||
if (possibleOptionElement.length > 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user