From 259cb95b4327b9158248efd217ed48355d47ab12 Mon Sep 17 00:00:00 2001 From: LDQ Date: Wed, 10 Nov 2021 17:53:24 +0000 Subject: [PATCH] Make problem type a bit more smart --- templates/problem/data.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/problem/data.html b/templates/problem/data.html index 6a0ade0..4bdd655 100644 --- a/templates/problem/data.html +++ b/templates/problem/data.html @@ -330,6 +330,10 @@ $("input[name$='DELETE']").attr('checked', false); } }); + + // Change to OI if the first row point > 0 + if($("#id_cases-0-points").val() != '0') $('#problem-type').val('OI'); + }).change(); {% endblock %}