collections_table_options = { "destroy": true, "language": { "search": "Search: ", "lengthMenu": "Show _MENU_ entries per page", "info": "Showing _START_ to _END_ of _TOTAL_ collections", "infoEmpty": "Showing 0 to 0 of 0 entries", "infoFiltered": "' + rowData['title'] + ''; $(td).html('' + thumb_popover + ''); } }, "width": "50%", "className": "no-wrap" }, { "targets": [1], "data": "collectionMode", "createdCell": function (td, cellData, rowData, row, col) { if (cellData !== '') { var mode = ''; if (cellData === -1) { mode = 'Library default'; } else if (cellData === 0) { mode = 'Hide collection'; } else if (cellData === 1) { mode = 'Hide items in this collection'; } else if (cellData === 2) { mode = 'Show this collection and its items'; } $(td).html(mode); } }, "width": "20%", "className": "no-wrap" }, { "targets": [2], "data": "collectionSort", "createdCell": function (td, cellData, rowData, row, col) { if (cellData !== '') { var sort = ''; if (cellData === 0) { sort = 'Release date'; } else if (cellData === 1) { sort = 'Alphabetical'; } $(td).html(sort); } }, "width": "20%", "className": "no-wrap" }, { "targets": [3], "data": "childCount", "createdCell": function (td, cellData, rowData, row, col) { if (cellData !== '') { var type = MEDIA_TYPE_HEADERS[rowData['subtype']] || ''; if (rowData['childCount'] == 1) { type = type.slice(0, -1); } $(td).html(cellData + ' ' + type); } }, "width": "10%", "className": "no-wrap" } ], "drawCallback": function (settings) { // Jump to top of page //$('html,body').scrollTop(0); $('#ajaxMsg').fadeOut(); $('body').popover({ selector: '[data-toggle="popover"]', html: true, container: 'body', trigger: 'hover', placement: 'right', template: '
", "emptyTable": "No data in table", "loadingRecords": ' Loading items...' }, "pagingType": "full_numbers", "stateSave": true, "stateDuration": 0, "processing": false, "serverSide": true, "pageLength": 25, "order": [0, 'asc'], "autoWidth": false, "scrollX": true, "columnDefs": [ { "targets": [0], "data": "titleSort", "createdCell": function (td, cellData, rowData, row, col) { if (cellData !== '') { var thumb_popover = '