Projet

Général

Profil

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

Thomas Noël, 07 juin 2016 12:27

Télécharger (1,2 ko)

Voir les différences:

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

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

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

  
40 40
<div class="cell mark-as-seen">
......
54 54
$(function() {
55 55
  $('[data-pdf-href]').on('welco:mail-selected', function() {
56 56
    $('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 57
  });
62 58
});
63 59
</script>
64
-