alfortville: add header checkbox to toggle validation on all mails (#13536)

This commit is contained in:
Thomas NOËL 2016-10-11 09:20:50 +02:00
parent ea72b6d001
commit a217cce050
1 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,7 @@
<th>{% trans 'User' %}</th>
<th>{% trans 'Category' %}</th>
<th>{% trans 'Related Forms' %}</th>
<td></td>
<th><input type="checkbox" title="{% trans "Click to (un)toggle all mails" %}" id="click-all-pks"/></th>
</thead>
<tbody>
{% for object in mails %}
@ -42,6 +42,9 @@
$('td.r').click(function() {
window.open('../?' + $(this).parent().data('mail-id'), target='_welco_dg');
});
$('input#click-all-pks').click(function(e) {
$('input[name="pks"]').prop('checked', $(this).prop('checked'));
});
</script>
</table>
</div>