mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 00:46:27 +02:00
Add medias link to mms into received + sended + scheduled + discussion
This commit is contained in:
parent
70d01be041
commit
f330312b55
8 changed files with 122 additions and 10 deletions
|
@ -39,8 +39,8 @@
|
|||
<table class="table table-bordered table-hover table-striped datatable" id="table-sendeds">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>De</th>
|
||||
<th>À</th>
|
||||
<th>Expéditeur</th>
|
||||
<th>Destinataire</th>
|
||||
<th>Message</th>
|
||||
<th>Date</th>
|
||||
<th>Statut</th>
|
||||
|
@ -94,7 +94,21 @@ jQuery(document).ready(function ()
|
|||
return row.destination_formatted;
|
||||
},
|
||||
},
|
||||
{data: 'text', render: jQuery.fn.dataTable.render.text()},
|
||||
{
|
||||
data: 'text',
|
||||
render: function (data, type, row, meta) {
|
||||
if (row.mms == 1) {
|
||||
var medias = [];
|
||||
for (i = 0; i < row.medias.length; i++) {
|
||||
medias.push('<a href="' + HTTP_PWD + '/data/' + jQuery.fn.dataTable.render.text().display(row.medias[i].path) + '" target="_blank">Fichier ' + (i + 1) + '</a>');
|
||||
}
|
||||
html = data + '<br/>' + medias.join(' - ');
|
||||
return html;
|
||||
}
|
||||
|
||||
return data;
|
||||
},
|
||||
},
|
||||
{data: 'at', render: jQuery.fn.dataTable.render.text()},
|
||||
{
|
||||
data: 'status',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue