alfortville: add header checkbox to toggle validation on all mails (#13536)
This commit is contained in:
parent
ea72b6d001
commit
a217cce050
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue