diff --git a/mo/web/templates/org_submit_list.html b/mo/web/templates/org_submit_list.html index 36544b60ebaf60dc151414730538de1b2fc93940..b86b4ad5ce8182b8255b348a8773c766a1282ba6 100644 --- a/mo/web/templates/org_submit_list.html +++ b/mo/web/templates/org_submit_list.html @@ -225,8 +225,24 @@ Existuje více než jedna verze oprav, finální je podbarvená. {{ wtf.form_field(form.delete, class='btn btn-danger') }} </div> {% endif %} + </form> +<script type="text/javascript"> + const in_points = document.getElementById("points") + const in_is_empty = document.getElementById("is_empty") + + function update_is_empty() { + in_points.disabled = in_is_empty.checked; + } + + in_is_empty.onchange = update_is_empty; + + window.addEventListener("load", function() { + update_is_empty(); + }); +</script> + {% endif %} {% endblock %}