Make problem type a bit more smart

This commit is contained in:
LDQ 2021-11-10 17:53:24 +00:00
parent 2f50c7e218
commit 259cb95b43

View file

@ -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();
</script>
{% endblock %}