From f039aaa4f4920f67548dfdffcdb3ed71908daf8a Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 26 Sep 2018 16:05:46 +1200 Subject: [PATCH] comparisonrecipeselect: fix logic for setting modal title If you clicked on "Select" then cancelled the modal that appears, then clicked on "No match" then the title of the modal in the second instance retains the recipe name from the first time which is wrong. Rearrange the logic so that this cannot happen (and make it tidier at the same time). Signed-off-by: Paul Eggleton --- .../layerindex/comparisonrecipeselect.html | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/templates/layerindex/comparisonrecipeselect.html b/templates/layerindex/comparisonrecipeselect.html index 395ce75..13acb7d 100644 --- a/templates/layerindex/comparisonrecipeselect.html +++ b/templates/layerindex/comparisonrecipeselect.html @@ -30,7 +30,7 @@