user_ip_table_options = { "destroy": true, "language": { "search": "Search: ", "lengthMenu":"Show _MENU_ entries per page", "info":"Showing _START_ to _END_ of _TOTAL_ results", "infoEmpty":"Showing 0 to 0 of 0 entries", "infoFiltered":"(filtered from _MAX_ total entries)", "emptyTable": "No data in table", }, "stateSave": true, "sPaginationType": "bootstrap", "processing": false, "serverSide": true, "pageLength": 10, "order": [ 0, 'desc'], "autoWidth": false, "columnDefs": [ { "targets": [0], "data":"last_seen", "render": function ( data, type, full ) { return moment(data, "X").fromNow(); }, "searchable": false, "width": "15%", "className": "no-wrap" }, { "targets": [1], "data":"ip_address", "width": "15%", "className": "modal-control no-wrap", "createdCell": function (td, cellData, rowData, row, col) { if (cellData) { if (isPrivateIP(cellData)) { if (cellData != '') { $(td).html(cellData); } else { $(td).html('n/a'); } } else { $(td).html(' ' + cellData +''); } } else { $(td).html('n/a'); } }, "width": "15%" }, { "targets": [2], "data":"play_count", "width": "10%", "className": "hidden-phone" }, { "targets": [3], "data":"platform", "width": "15%", "className": "hidden-phone" }, { "targets": [4], "data":"last_watched", "width": "30%", "className": "hidden-tablet hidden-phone" } ], "drawCallback": function (settings) { // Jump to top of page // $('html,body').scrollTop(0); $('#ajaxMsg').fadeOut(); }, "preDrawCallback": function(settings) { var msg = "