diff --git a/data/interfaces/default/js/tables/history_table.js b/data/interfaces/default/js/tables/history_table.js index 2e54a0d4..7e76cb28 100644 --- a/data/interfaces/default/js/tables/history_table.js +++ b/data/interfaces/default/js/tables/history_table.js @@ -34,6 +34,7 @@ history_table_options = { "createdCell": function (td, cellData, rowData, row, col) { $(td).html(''); }, + "width": "5%", "className": "delete-control no-wrap hidden", "searchable": false, "orderable": false @@ -49,6 +50,7 @@ history_table_options = { } }, "searchable": false, + "width": "8%", "className": "no-wrap" }, { @@ -65,6 +67,7 @@ history_table_options = { $(td).html(cellData); } }, + "width": "8%", "className": "no-wrap hidden-xs" }, { @@ -85,6 +88,7 @@ history_table_options = { $(td).html('n/a'); } }, + "width": "8%", "className": "no-wrap hidden-md hidden-sm hidden-xs modal-control-ip" }, { @@ -94,12 +98,16 @@ history_table_options = { if (cellData !== '') { var transcode_dec = ''; if (rowData['video_decision'] === 'transcode') { - transcode_dec = ' '; + transcode_dec = ' '; + } else if (rowData['video_decision'] === 'copy') { + transcode_dec = ' '; + } else if (rowData['video_decision'] === 'direct play' || rowData['video_decision'] === '') { + transcode_dec = ' '; } - $(td).html('
 ' + cellData + '
\ -
' + transcode_dec + '
'); + $(td).html('
' + transcode_dec + ' ' + cellData + '
'); } }, + "width": "15%", "className": "no-wrap hidden-md hidden-sm hidden-xs modal-control" }, { @@ -107,18 +115,26 @@ history_table_options = { "data":"full_title", "createdCell": function (td, cellData, rowData, row, col) { if (cellData !== '') { - if (rowData['media_type'] === 'movie' || rowData['media_type'] === 'episode') { - var media_type = rowData['media_type'][0].toUpperCase() + rowData['media_type'].substring(1); - $(td).html('
' + cellData + '
\ -
'); + var media_type = ''; + var thumb_popover = '' + if (rowData['media_type'] === 'movie') { + media_type = ''; + thumb_popover = '' + cellData + '' + $(td).html('
' + media_type + ' ' + thumb_popover + '
'); + } else if (rowData['media_type'] === 'episode') { + media_type = ''; + thumb_popover = '' + cellData + '' + $(td).html('
' + media_type + ' ' + thumb_popover + '
'); } else if (rowData['media_type'] === 'track') { - $(td).html('
' + cellData + '
\ -
'); + media_type = ''; + thumb_popover = '' + cellData + '' + $(td).html('
' + media_type + ' ' + thumb_popover + '
'); } else { $(td).html('' + cellData + ''); } } - } + }, + "width": "35%" }, { "targets": [6], @@ -131,6 +147,7 @@ history_table_options = { } }, "searchable": false, + "width": "5%", "className": "no-wrap hidden-sm hidden-xs" }, { @@ -144,6 +161,7 @@ history_table_options = { } }, "searchable": false, + "width": "5%", "className": "no-wrap hidden-md hidden-sm hidden-xs" }, { @@ -157,6 +175,7 @@ history_table_options = { } }, "searchable": false, + "width": "5%", "className": "no-wrap hidden-sm hidden-xs" }, { @@ -170,6 +189,7 @@ history_table_options = { } }, "searchable": false, + "width": "5%", "className": "no-wrap hidden-xs" }, { @@ -177,17 +197,17 @@ history_table_options = { "data":"percent_complete", "render": function ( data, type, full ) { if (data > 80) { - return '' + return '' } else if (data > 40) { - return '' + return '' } else { - return '' + return '' } }, "searchable": false, "orderable": false, "className": "no-wrap hidden-md hidden-sm hidden-xs", - "width": "10px" + "width": "1%" }, ], "drawCallback": function (settings) { @@ -198,12 +218,13 @@ history_table_options = { // Create the tooltips. $('.transcode-tooltip').tooltip(); $('.media-type-tooltip').tooltip(); + $('.watched-tooltip').tooltip(); $('.thumb-tooltip').popover({ html: true, trigger: 'hover', placement: 'right', content: function () { - return '
'; + return '
'; } });