Projet

Général

Profil

0001-alfortville-add-header-checkbox-to-toggle-validation.patch

Frédéric Péters, 11 octobre 2016 09:32

Télécharger (1,22 ko)

Voir les différences:

Subject: [PATCH] alfortville: add header checkbox to toggle validation on all
 mails (#13536)

 welco/contrib/alfortville/templates/alfortville/dg-table.html | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
welco/contrib/alfortville/templates/alfortville/dg-table.html
23 23
 <th>{% trans 'User' %}</th>
24 24
 <th>{% trans 'Category' %}</th>
25 25
 <th>{% trans 'Related Forms' %}</th>
26
 <td></td>
26
 <th><input type="checkbox" title="{% trans "Click to (un)toggle all mails" %}" id="click-all-pks"/></th>
27 27
</thead>
28 28
<tbody>
29 29
{% for object in mails %}
......
42 42
$('td.r').click(function() {
43 43
  window.open('../?' + $(this).parent().data('mail-id'), target='_welco_dg');
44 44
});
45
$('input#click-all-pks').click(function(e) {
46
  $('input[name="pks"]').prop('checked', $(this).prop('checked'));
47
});
45 48
</script>
46 49
</table>
47 50
</div>
48
-