Adding tooltip to have full timestamp.

This commit is contained in:
Louis Vézina 2019-03-27 15:10:52 -04:00
parent 8d5d0f5bba
commit 8a833ed941
1 changed files with 3 additions and 4 deletions

View File

@ -132,7 +132,7 @@
<th></th>
<th class="collapsing"></th>
<th style="text-align: left;">Message:</th>
<th style="text-align: left;">Time:</th>
<th class="collapsing" style="text-align: left;">Time:</th>
<th></th>
</tr>
</thead>
@ -500,9 +500,8 @@
},
{ data: 0,
render: function ( data, type, row ) {
//return $.trim(data);
return moment($.trim(data), "DD/MM/YYYY hh:mm:ss").fromNow();
}
return '<div class="description" data-tooltip="' + $.trim(data) + '" data-inverted="" data-position="top left">' + moment($.trim(data), "DD/MM/YYYY hh:mm:ss").fromNow() + '</div>'
}
},
{ data: 4,
render: function ( data, type, row ) {