Projet

Général

Profil

0001-alfortville-no-formdata-links-in-avis-tables-11228.patch

Thomas Noël, 06 juin 2016 16:54

Télécharger (1,21 ko)

Voir les différences:

Subject: [PATCH] alfortville: no formdata-links in "avis" tables (#11228)

 welco/contrib/alfortville/templates/alfortville/mail-table.html | 7 -------
 1 file changed, 7 deletions(-)
welco/contrib/alfortville/templates/alfortville/mail-table.html
34 34
</div>
35 35
</div>
36 36

  
37
<div class="cell formdata-links">
38
</div>
39

  
40 37
<div class="cell mark-as-seen">
41 38
<form method="POST">
42 39
  {% csrf_token %}
......
54 51
$(function() {
55 52
  $('[data-pdf-href]').on('welco:mail-selected', function() {
56 53
    $('input[name="object-pk"]').val($(this).data('source-pk'));
57
    $('.formdata-links').empty();
58
    $(this).find('[data-formdata-url]').each(function(idx, elem) {
59
      $('<a href="' + $(elem).data('formdata-url') + '">' + $(elem).text() + '</a>').appendTo($('.formdata-links'));
60
    });
61 54
  });
62 55
});
63 56
</script>
64
-