mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 05:31:15 -07:00
Some datatables cleanup
This commit is contained in:
parent
8ed7688277
commit
c9ee6e3af9
12 changed files with 68 additions and 48 deletions
|
@ -15,12 +15,13 @@ history_table_options = {
|
||||||
"destroy": true,
|
"destroy": true,
|
||||||
"language": {
|
"language": {
|
||||||
"search": "Search: ",
|
"search": "Search: ",
|
||||||
"lengthMenu":"Show _MENU_ entries per page",
|
"lengthMenu": "Show _MENU_ entries per page",
|
||||||
"info":"Showing _START_ to _END_ of _TOTAL_ history items",
|
"info": "Showing _START_ to _END_ of _TOTAL_ history items",
|
||||||
"infoEmpty":"Showing 0 to 0 of 0 entries",
|
"infoEmpty": "Showing 0 to 0 of 0 entries",
|
||||||
"infoFiltered":"<span class='hidden-md hidden-sm hidden-xs'>(filtered from _MAX_ total entries)</span>",
|
"infoFiltered": "<span class='hidden-md hidden-sm hidden-xs'>(filtered from _MAX_ total entries)</span>",
|
||||||
"emptyTable": "No data in table"
|
"emptyTable": "No data in table",
|
||||||
},
|
"loadingRecords": '<i class="fa fa-refresh fa-spin"></i> Loading items...</div>'
|
||||||
|
},
|
||||||
"pagingType": "full_numbers",
|
"pagingType": "full_numbers",
|
||||||
"stateSave": true,
|
"stateSave": true,
|
||||||
"processing": false,
|
"processing": false,
|
||||||
|
|
|
@ -14,10 +14,11 @@ history_table_modal_options = {
|
||||||
"destroy": true,
|
"destroy": true,
|
||||||
"language": {
|
"language": {
|
||||||
"search": "Search: ",
|
"search": "Search: ",
|
||||||
"info":"Showing _START_ to _END_ of _TOTAL_ history items",
|
"info": "Showing _START_ to _END_ of _TOTAL_ history items",
|
||||||
"infoEmpty":"Showing 0 to 0 of 0 entries",
|
"infoEmpty": "Showing 0 to 0 of 0 entries",
|
||||||
"infoFiltered":"",
|
"infoFiltered": "",
|
||||||
"emptyTable": "No data in table",
|
"emptyTable": "No data in table",
|
||||||
|
"loadingRecords": '<i class="fa fa-refresh fa-spin"></i> Loading items...</div>'
|
||||||
},
|
},
|
||||||
"pagingType": "simple_numbers",
|
"pagingType": "simple_numbers",
|
||||||
"stateSave": false,
|
"stateSave": false,
|
||||||
|
|
|
@ -4,11 +4,12 @@ var libraries_to_purge = [];
|
||||||
libraries_list_table_options = {
|
libraries_list_table_options = {
|
||||||
"language": {
|
"language": {
|
||||||
"search": "Search: ",
|
"search": "Search: ",
|
||||||
"lengthMenu":"Show _MENU_ entries per page",
|
"lengthMenu": "Show _MENU_ entries per page",
|
||||||
"info":"Showing _START_ to _END_ of _TOTAL_ active libraries",
|
"info": "Showing _START_ to _END_ of _TOTAL_ active libraries",
|
||||||
"infoEmpty":"Showing 0 to 0 of 0 entries",
|
"infoEmpty": "Showing 0 to 0 of 0 entries",
|
||||||
"infoFiltered":"",
|
"infoFiltered": "",
|
||||||
"emptyTable": "No data in table",
|
"emptyTable": "No data in table",
|
||||||
|
"loadingRecords": '<i class="fa fa-refresh fa-spin"></i> Loading items...</div>'
|
||||||
},
|
},
|
||||||
"destroy": true,
|
"destroy": true,
|
||||||
"processing": false,
|
"processing": false,
|
||||||
|
|
|
@ -8,11 +8,13 @@ var log_table_options = {
|
||||||
"stateSave": true,
|
"stateSave": true,
|
||||||
"language": {
|
"language": {
|
||||||
"search":"Search: ",
|
"search":"Search: ",
|
||||||
"lengthMenu":"Show _MENU_ lines per page",
|
"lengthMenu": "Show _MENU_ lines per page",
|
||||||
"emptyTable": "No log information available",
|
"emptyTable": "No log information available",
|
||||||
"info":"Showing _START_ to _END_ of _TOTAL_ lines",
|
"info": "Showing _START_ to _END_ of _TOTAL_ lines",
|
||||||
"infoEmpty":"Showing 0 to 0 of 0 lines",
|
"infoEmpty": "Showing 0 to 0 of 0 lines",
|
||||||
"infoFiltered":"(filtered from _MAX_ total lines)"},
|
"infoFiltered": "(filtered from _MAX_ total lines)",
|
||||||
|
"loadingRecords": '<i class="fa fa-refresh fa-spin"></i> Loading items...</div>'
|
||||||
|
},
|
||||||
"columnDefs": [
|
"columnDefs": [
|
||||||
{
|
{
|
||||||
"targets": [0],
|
"targets": [0],
|
||||||
|
|
|
@ -20,7 +20,8 @@ media_info_table_options = {
|
||||||
"info":"Showing _START_ to _END_ of _TOTAL_ library items",
|
"info":"Showing _START_ to _END_ of _TOTAL_ library items",
|
||||||
"infoEmpty":"Showing 0 to 0 of 0 entries",
|
"infoEmpty":"Showing 0 to 0 of 0 entries",
|
||||||
"infoFiltered":"<span class='hidden-md hidden-sm hidden-xs'>(filtered from _MAX_ total entries)</span>",
|
"infoFiltered":"<span class='hidden-md hidden-sm hidden-xs'>(filtered from _MAX_ total entries)</span>",
|
||||||
"emptyTable": "No data in table"
|
"emptyTable": "No data in table",
|
||||||
|
"loadingRecords": '<i class="fa fa-refresh fa-spin"></i> Loading items...</div>'
|
||||||
},
|
},
|
||||||
"pagingType": "full_numbers",
|
"pagingType": "full_numbers",
|
||||||
"stateSave": true,
|
"stateSave": true,
|
||||||
|
|
|
@ -8,11 +8,13 @@ notification_log_table_options = {
|
||||||
"stateSave": true,
|
"stateSave": true,
|
||||||
"language": {
|
"language": {
|
||||||
"search":"Search: ",
|
"search":"Search: ",
|
||||||
"lengthMenu":"Show _MENU_ lines per page",
|
"lengthMenu": "Show _MENU_ lines per page",
|
||||||
"emptyTable": "No log information available",
|
"emptyTable": "No log information available",
|
||||||
"info":"Showing _START_ to _END_ of _TOTAL_ lines",
|
"info" :"Showing _START_ to _END_ of _TOTAL_ lines",
|
||||||
"infoEmpty":"Showing 0 to 0 of 0 lines",
|
"infoEmpty": "Showing 0 to 0 of 0 lines",
|
||||||
"infoFiltered":"(filtered from _MAX_ total lines)"},
|
"infoFiltered": "(filtered from _MAX_ total lines)",
|
||||||
|
"loadingRecords": '<i class="fa fa-refresh fa-spin"></i> Loading items...</div>'
|
||||||
|
},
|
||||||
"columnDefs": [
|
"columnDefs": [
|
||||||
{
|
{
|
||||||
"targets": [0],
|
"targets": [0],
|
||||||
|
|
|
@ -7,12 +7,14 @@ var plex_log_table_options = {
|
||||||
"pageLength": 50,
|
"pageLength": 50,
|
||||||
"stateSave": true,
|
"stateSave": true,
|
||||||
"language": {
|
"language": {
|
||||||
"search":"Search: ",
|
"search": "Search: ",
|
||||||
"lengthMenu":"Show _MENU_ lines per page",
|
"lengthMenu": "Show _MENU_ lines per page",
|
||||||
"emptyTable": "No log information available. Have you set your logs folder in the <a href='settings'>settings</a>?",
|
"emptyTable": "No log information available. Have you set your logs folder in the <a href='settings'>settings</a>?",
|
||||||
"info":"Showing _START_ to _END_ of _TOTAL_ lines",
|
"info": "Showing _START_ to _END_ of _TOTAL_ lines",
|
||||||
"infoEmpty":"Showing 0 to 0 of 0 lines",
|
"infoEmpty": "Showing 0 to 0 of 0 lines",
|
||||||
"infoFiltered":"(filtered from _MAX_ total lines)"},
|
"infoFiltered": "(filtered from _MAX_ total lines)",
|
||||||
|
"loadingRecords": '<i class="fa fa-refresh fa-spin"></i> Loading items...</div>'
|
||||||
|
},
|
||||||
"columnDefs": [
|
"columnDefs": [
|
||||||
{
|
{
|
||||||
"targets": [0],
|
"targets": [0],
|
||||||
|
|
|
@ -6,13 +6,13 @@ sync_table_options = {
|
||||||
"pageLength": 25,
|
"pageLength": 25,
|
||||||
"stateSave": true,
|
"stateSave": true,
|
||||||
"language": {
|
"language": {
|
||||||
"search":"Search: ",
|
"search": "Search: ",
|
||||||
"lengthMenu":"Show _MENU_ lines per page",
|
"lengthMenu": "Show _MENU_ lines per page",
|
||||||
"emptyTable": "No synced items",
|
"emptyTable": "No synced items",
|
||||||
"info":"Showing _START_ to _END_ of _TOTAL_ lines",
|
"info": "Showing _START_ to _END_ of _TOTAL_ lines",
|
||||||
"infoEmpty":"Showing 0 to 0 of 0 lines",
|
"infoEmpty": "Showing 0 to 0 of 0 lines",
|
||||||
"infoFiltered":"(filtered from _MAX_ total lines)",
|
"infoFiltered": "(filtered from _MAX_ total lines)",
|
||||||
"loadingRecords":'<i class="fa fa-refresh fa-spin"></i> Loading items...</div>'
|
"loadingRecords": '<i class="fa fa-refresh fa-spin"></i> Loading items...</div>'
|
||||||
},
|
},
|
||||||
"columnDefs": [
|
"columnDefs": [
|
||||||
{
|
{
|
||||||
|
@ -118,6 +118,12 @@ sync_table_options = {
|
||||||
],
|
],
|
||||||
"drawCallback": function (settings) {
|
"drawCallback": function (settings) {
|
||||||
// Jump to top of page
|
// Jump to top of page
|
||||||
$('html,body').scrollTop(0);
|
// $('html,body').scrollTop(0);
|
||||||
|
|
||||||
|
$('#ajaxMsg').fadeOut();
|
||||||
|
},
|
||||||
|
"preDrawCallback": function (settings) {
|
||||||
|
var msg = "<i class='fa fa-refresh fa-spin'></i> Fetching rows...";
|
||||||
|
showMsg(msg, false, false, 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,11 +2,12 @@ user_ip_table_options = {
|
||||||
"destroy": true,
|
"destroy": true,
|
||||||
"language": {
|
"language": {
|
||||||
"search": "Search: ",
|
"search": "Search: ",
|
||||||
"lengthMenu":"Show _MENU_ entries per page",
|
"lengthMenu": "Show _MENU_ entries per page",
|
||||||
"info":"Showing _START_ to _END_ of _TOTAL_ results",
|
"info": "Showing _START_ to _END_ of _TOTAL_ results",
|
||||||
"infoEmpty":"Showing 0 to 0 of 0 entries",
|
"infoEmpty": "Showing 0 to 0 of 0 entries",
|
||||||
"infoFiltered":"(filtered from _MAX_ total entries)",
|
"infoFiltered": "(filtered from _MAX_ total entries)",
|
||||||
"emptyTable": "No data in table",
|
"emptyTable": "No data in table",
|
||||||
|
"loadingRecords": '<i class="fa fa-refresh fa-spin"></i> Loading items...</div>'
|
||||||
},
|
},
|
||||||
"stateSave": true,
|
"stateSave": true,
|
||||||
"pagingType": "full_numbers",
|
"pagingType": "full_numbers",
|
||||||
|
@ -38,7 +39,8 @@ user_ip_table_options = {
|
||||||
$(td).html('n/a');
|
$(td).html('n/a');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$(td).html('<a href="javascript:void(0)" data-toggle="modal" data-target="#ip-info-modal"><span data-toggle="ip-tooltip" data-placement="left" title="IP Address Info" id="ip-info"><i class="fa fa-map-marker"></i></span> ' + cellData +'</a>');
|
external_ip = '<span class="external-ip-tooltip" data-toggle="tooltip" title="External IP"><i class="fa fa-map-marker fa-fw"></i></span>';
|
||||||
|
$(td).html('<a href="javascript:void(0)" data-toggle="modal" data-target="#ip-info-modal">' + external_ip + cellData + '</a>');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$(td).html('n/a');
|
$(td).html('n/a');
|
||||||
|
@ -125,9 +127,10 @@ user_ip_table_options = {
|
||||||
$('#ajaxMsg').fadeOut();
|
$('#ajaxMsg').fadeOut();
|
||||||
|
|
||||||
// Create the tooltips.
|
// Create the tooltips.
|
||||||
$('.transcode-tooltip').tooltip();
|
$('.external-ip-tooltip').tooltip({ container: 'body' });
|
||||||
$('.media-type-tooltip').tooltip();
|
$('.transcode-tooltip').tooltip({ container: 'body' });
|
||||||
$('.watched-tooltip').tooltip();
|
$('.media-type-tooltip').tooltip({ container: 'body' });
|
||||||
|
$('.watched-tooltip').tooltip({ container: 'body' });
|
||||||
$('.thumb-tooltip').popover({
|
$('.thumb-tooltip').popover({
|
||||||
html: true,
|
html: true,
|
||||||
container: 'body',
|
container: 'body',
|
||||||
|
|
|
@ -21,11 +21,12 @@ function toggleEditNames() {
|
||||||
users_list_table_options = {
|
users_list_table_options = {
|
||||||
"language": {
|
"language": {
|
||||||
"search": "Search: ",
|
"search": "Search: ",
|
||||||
"lengthMenu":"Show _MENU_ entries per page",
|
"lengthMenu": "Show _MENU_ entries per page",
|
||||||
"info":"Showing _START_ to _END_ of _TOTAL_ active users",
|
"info": "Showing _START_ to _END_ of _TOTAL_ active users",
|
||||||
"infoEmpty":"Showing 0 to 0 of 0 entries",
|
"infoEmpty": "Showing 0 to 0 of 0 entries",
|
||||||
"infoFiltered":"",
|
"infoFiltered": "",
|
||||||
"emptyTable": "No data in table",
|
"emptyTable": "No data in table",
|
||||||
|
"loadingRecords": '<i class="fa fa-refresh fa-spin"></i> Loading items...</div>'
|
||||||
},
|
},
|
||||||
"destroy": true,
|
"destroy": true,
|
||||||
"processing": false,
|
"processing": false,
|
||||||
|
|
|
@ -176,7 +176,7 @@ DOCUMENTATION :: END
|
||||||
<div class='table-card-header'>
|
<div class='table-card-header'>
|
||||||
<div class="header-bar">
|
<div class="header-bar">
|
||||||
<span>
|
<span>
|
||||||
<i class="fa fa-history"></i> Watch History for <strong>
|
<i class="fa fa-history"></i> Play History for <strong>
|
||||||
<span class="set-username">${data['section_name']}</span>
|
<span class="set-username">${data['section_name']}</span>
|
||||||
</strong>
|
</strong>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -175,7 +175,7 @@ DOCUMENTATION :: END
|
||||||
<div class='table-card-header'>
|
<div class='table-card-header'>
|
||||||
<div class="header-bar">
|
<div class="header-bar">
|
||||||
<span>
|
<span>
|
||||||
<i class="fa fa-history"></i> Watch History for <strong>
|
<i class="fa fa-history"></i> Play History for <strong>
|
||||||
<span class="set-username">${data['friendly_name']}</span>
|
<span class="set-username">${data['friendly_name']}</span>
|
||||||
</strong>
|
</strong>
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue