From 507f14a120169edbe3c1a76e15466da9d071ef19 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 10 May 2023 17:14:24 +0000 Subject: Fix phenotype metadata template to only read in changed sample data Also fix the display so it only shows 3 decimal places --- wqflask/wqflask/templates/edit_phenotype.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/wqflask/wqflask/templates/edit_phenotype.html b/wqflask/wqflask/templates/edit_phenotype.html index a97b4a20..d67468c3 100644 --- a/wqflask/wqflask/templates/edit_phenotype.html +++ b/wqflask/wqflask/templates/edit_phenotype.html @@ -23,6 +23,7 @@ +
@@ -208,10 +209,10 @@ {{ loop.index }} {{ sample }} - + ± - - + + {% endfor %} @@ -234,5 +235,10 @@ $("input[type=submit]").click(function(){ $(":input:not(.changed)").attr("disabled", "disabled"); }); + + // This is an awkward way to detect changes to table data, so it doesn't process it otherwise + $(".table_input").change(function(){ + $("input[name=edited]").val("true"); + }); {% endblock %} -- cgit v1.2.3