Hi,
On the OnScriptInit event I added this code :
<script>
$(document).ready(function() {
$('span[id^="id_read_on_id_fiche_"]').each(function () {
var value = $(this).text();
$(this).html("<a href='../formulaire_usagers/index.php?id="+value+"' target='_parent' title='Consultez cette fiche'>"+value+"</a>");
if (value == 0) $(this).html('');
});
$('span[id^="id_read_on_courriel_"]').each(function () {
var value = $(this).text();
$(this).html("<a href=mailto:"+value+"' title='Envoyer un courriel'>"+value+"</a>");
});
});
</script>
To get this result :
Unfortunately when I edit a line and save or cancel I don’t know how to apply this JavaScript code
Do you have an idea ?
Thank you