Some datatables cleanup

This commit is contained in:
JonnyWong16 2016-05-13 21:43:32 -07:00
parent 8ed7688277
commit c9ee6e3af9
12 changed files with 68 additions and 48 deletions

View file

@ -19,7 +19,8 @@ history_table_options = {
"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,

View file

@ -18,6 +18,7 @@ history_table_modal_options = {
"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,

View file

@ -9,6 +9,7 @@ libraries_list_table_options = {
"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,

View file

@ -12,7 +12,9 @@ var log_table_options = {
"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],

View file

@ -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,

View file

@ -12,7 +12,9 @@ notification_log_table_options = {
"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],

View file

@ -12,7 +12,9 @@ var plex_log_table_options = {
"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],

View file

@ -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>&nbspFetching rows...";
showMsg(msg, false, false, 0)
} }
} }

View file

@ -7,6 +7,7 @@ user_ip_table_options = {
"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>&nbsp' + 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',

View file

@ -26,6 +26,7 @@ users_list_table_options = {
"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,

View file

@ -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>

View file

@ -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>