mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 13:41:15 -07:00
Add Links to user screen Add Public IP list to user screen Add Watch history to user screen
41 lines
1.2 KiB
JavaScript
41 lines
1.2 KiB
JavaScript
$('#log_table').dataTable( {
|
|
"processing": false,
|
|
"serverSide": true,
|
|
"ajax": {
|
|
"url": "getLog"
|
|
},
|
|
"sPaginationType": "bootstrap",
|
|
"order": [ 0, 'desc'],
|
|
"pageLength": 10,
|
|
"stateSave": true,
|
|
"language": {
|
|
"search":"Search: ",
|
|
"lengthMenu":"Show _MENU_ lines per page",
|
|
"emptyTable": "No log information available",
|
|
"info":"Showing _START_ to _END_ of _TOTAL_ lines",
|
|
"infoEmpty":"Showing 0 to 0 of 0 lines",
|
|
"infoFiltered":"(filtered from _MAX_ total lines)"},
|
|
"columnDefs": [
|
|
{
|
|
"targets": [0],
|
|
"width": "15%"
|
|
},
|
|
{
|
|
"targets": [1],
|
|
"width": "10%"
|
|
},
|
|
{
|
|
"targets": [2],
|
|
"width": "75%"
|
|
}
|
|
],
|
|
"drawCallback": function (settings) {
|
|
// Jump to top of page
|
|
$('html,body').scrollTop(0);
|
|
$('#ajaxMsg').addClass('success').fadeOut();
|
|
},
|
|
"preDrawCallback": function(settings) {
|
|
$('#ajaxMsg').html("<div class='msg'><span class='ui-icon ui-icon-check'></span>Fetching rows...</div>");
|
|
$('#ajaxMsg').addClass('success').fadeIn();
|
|
}
|
|
});
|