From 1f2b22be5f6ac94ef39d9a6957b2f452b81c92ea Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 7 Mar 2022 19:10:50 +0100 Subject: Operation - Parcels - Modify: fix select all button (do not select public domain) --- ishtar_common/templates/ishtar/forms/modify_parcels.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ishtar_common') diff --git a/ishtar_common/templates/ishtar/forms/modify_parcels.html b/ishtar_common/templates/ishtar/forms/modify_parcels.html index b9882c12c..27fce9a41 100644 --- a/ishtar_common/templates/ishtar/forms/modify_parcels.html +++ b/ishtar_common/templates/ishtar/forms/modify_parcels.html @@ -21,7 +21,7 @@ {% if field.name != 'pk' %}{% if field.required %} {{ field.label_tag }}{% if field.required %}{%else%}{% endif %}{% endif %}{% endfor %} - ({% trans "all"%} ) + ({% trans "all"%} ) {% inline_formset 'Parcels' formset.forms False %} @@ -52,6 +52,10 @@ {% endblock %} $(document).ready(function(){ qa_action_register("{{url}}"); + var delete_parcel_checked= false; + $(document).on("click", '.check-all-parcel', function(){ + $('input[id$="-DELETE"]:checkbox').prop('checked', $(this).is(':checked')); + }); {% block js_ready %} {% endblock %} }); -- cgit v1.2.3