Make problem type a bit more smart
This commit is contained in:
parent
2f50c7e218
commit
259cb95b43
1 changed files with 4 additions and 0 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue