Projet

Général

Profil

0001-alfortville-toggle-all-validation-on-DG-AS-tables.patch

Thomas Noël, 11 octobre 2016 09:21

Télécharger (1,14 ko)

Voir les différences:

Subject: [PATCH] alfortville: toggle all validation on DG[AS] tables

 welco/contrib/alfortville/templates/alfortville/dg-table.html | 6 +++++-
 1 file changed, 5 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" 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"]').click();
47
  e.preventDefault();
48
});
45 49
</script>
46 50
</table>
47 51
</div>
48
-