logo

Grimgrains

Unnamed repository; edit this file 'description' to name the repository.
commit: 94ef845faa8bb79e06e411ed60fc33f9be0d20c9
parent 818c03c70b0ed0542957cc97cd0b61fb570b9265
Author: Лu Лinveгa <aliceffekt@gmail.com>
Date:   Sat, 22 Jun 2019 06:45:21 +0900

Merge pull request #8 from lcb931023/bugfix-ingredients-recipe

bugfix: convert recipe name to url on the ingredient pages

Diffstat:

Mscripts/templates/ingredient.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/templates/ingredient.js b/scripts/templates/ingredient.js @@ -101,7 +101,7 @@ function IngredientTemplate (id, rect) { var name = id html += ` <li class='recipe'> - <a onclick="Ø('query').bang('${name}')" class='photo' href='#${name}' style='background-image:url(media/recipes/${name.to_path()}.jpg)'></a> + <a onclick="Ø('query').bang('${name}')" class='photo' href='#${name.to_url()}' style='background-image:url(media/recipes/${name.to_path()}.jpg)'></a> <t class='name'>${name.capitalize()}</t> <t class='details'><b>${recipe.TIME} minutes</b><br />${count_ingredients(recipe)} ingredients<br />${recipe.INST.length} steps</t> </li>`