diff options
Diffstat (limited to 'ishtar_common')
| -rw-r--r-- | ishtar_common/templates/ishtar/forms/modify_parcels.html | 6 | 
1 files changed, 5 insertions, 1 deletions
| 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 %}<th{%else%}<td{% endif %}{% if not forloop.last %} rowspan='2'{% endif %}>                              {{ field.label_tag }}{% if field.required %}</th>{%else%}</td>{% endif %}{% endif %}{% endfor %}                          </tr> -                        <tr><td>({% trans "all"%} <input type='checkbox' name='check-all' class='check-all'/>)</td></tr> +                        <tr><td>({% trans "all"%} <input type='checkbox' name='check-all' class='check-all-parcel'/>)</td></tr>                          {% inline_formset 'Parcels' formset.forms False %}                      </table> @@ -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 %}      }); | 
