Remove responsive datatables plugin - use normal media queries.
Set datatables stateSave to true as default Remove some old images. Change button on edit user modal
This commit is contained in:
@@ -12,9 +12,6 @@ $.ajax({
|
||||
|
||||
history_table_options = {
|
||||
"destroy": true,
|
||||
"responsive": {
|
||||
details: false
|
||||
},
|
||||
"language": {
|
||||
"search": "Search: ",
|
||||
"lengthMenu":"Show _MENU_ entries per page",
|
||||
@@ -23,8 +20,8 @@ history_table_options = {
|
||||
"infoFiltered":"(filtered from _MAX_ total entries)",
|
||||
"emptyTable": "No data in table",
|
||||
},
|
||||
"stateSave": false,
|
||||
"sPaginationType": "bootstrap",
|
||||
"stateSave": true,
|
||||
"processing": false,
|
||||
"serverSide": true,
|
||||
"pageLength": 25,
|
||||
@@ -58,7 +55,7 @@ history_table_options = {
|
||||
$(td).html(cellData);
|
||||
}
|
||||
},
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [2],
|
||||
@@ -68,7 +65,7 @@ history_table_options = {
|
||||
$(td).html('<a href="#info-modal" data-toggle="modal"><span data-toggle="tooltip" data-placement="left" title="Stream Info" id="stream-info"><i class="fa fa-lg fa-info-circle"></i></span></a> '+cellData);
|
||||
}
|
||||
},
|
||||
"className": "modal-control no-wrap"
|
||||
"className": "modal-control no-wrap hidden-tablet hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [3],
|
||||
@@ -78,7 +75,7 @@ history_table_options = {
|
||||
$(td).html('n/a');
|
||||
}
|
||||
},
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [4],
|
||||
@@ -106,7 +103,7 @@ history_table_options = {
|
||||
return moment(data, "X").format(time_format);
|
||||
},
|
||||
"searchable": false,
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-tablet hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [6],
|
||||
@@ -119,7 +116,7 @@ history_table_options = {
|
||||
}
|
||||
},
|
||||
"searchable": false,
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [7],
|
||||
@@ -132,7 +129,7 @@ history_table_options = {
|
||||
}
|
||||
},
|
||||
"searchable": false,
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-tablet hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [8],
|
||||
@@ -145,7 +142,7 @@ history_table_options = {
|
||||
}
|
||||
},
|
||||
"searchable": false,
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [9],
|
||||
@@ -161,7 +158,7 @@ history_table_options = {
|
||||
},
|
||||
"searchable": false,
|
||||
"orderable": true,
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-tablet hidden-phone"
|
||||
}
|
||||
],
|
||||
"drawCallback": function (settings) {
|
||||
|
@@ -1,14 +1,11 @@
|
||||
var log_table_options = {
|
||||
"destroy": true,
|
||||
"responsive": {
|
||||
details: false
|
||||
},
|
||||
"serverSide": true,
|
||||
"processing": false,
|
||||
"sPaginationType": "bootstrap",
|
||||
"order": [ 0, 'desc'],
|
||||
"pageLength": 10,
|
||||
"stateSave": false,
|
||||
"stateSave": true,
|
||||
"language": {
|
||||
"search":"Search: ",
|
||||
"lengthMenu":"Show _MENU_ lines per page",
|
||||
@@ -20,12 +17,12 @@ var log_table_options = {
|
||||
{
|
||||
"targets": [0],
|
||||
"width": "15%",
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [1],
|
||||
"width": "10%",
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-tablet hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [2],
|
||||
|
@@ -1,14 +1,11 @@
|
||||
var plex_log_table_options = {
|
||||
"destroy": true,
|
||||
"responsive": {
|
||||
details: false
|
||||
},
|
||||
"processing": false,
|
||||
"serverSide": false,
|
||||
"sPaginationType": "bootstrap",
|
||||
"order": [ 0, 'desc'],
|
||||
"pageLength": 10,
|
||||
"stateSave": false,
|
||||
"stateSave": true,
|
||||
"language": {
|
||||
"search":"Search: ",
|
||||
"lengthMenu":"Show _MENU_ lines per page",
|
||||
@@ -20,12 +17,12 @@ var plex_log_table_options = {
|
||||
{
|
||||
"targets": [0],
|
||||
"width": "15%",
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [1],
|
||||
"width": "10%",
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-tablet hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [2],
|
||||
|
@@ -1,13 +1,10 @@
|
||||
sync_table_options = {
|
||||
"responsive": {
|
||||
details: false
|
||||
},
|
||||
"processing": false,
|
||||
"serverSide": false,
|
||||
"sPaginationType": "bootstrap",
|
||||
"order": [ 0, 'desc'],
|
||||
"pageLength": 25,
|
||||
"stateSave": false,
|
||||
"stateSave": true,
|
||||
"language": {
|
||||
"search":"Search: ",
|
||||
"lengthMenu":"Show _MENU_ lines per page",
|
||||
@@ -29,7 +26,7 @@ sync_table_options = {
|
||||
$(td).html(cellData.toProperCase());
|
||||
}
|
||||
},
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [1],
|
||||
@@ -60,17 +57,17 @@ sync_table_options = {
|
||||
"render": function ( data, type, full ) {
|
||||
return data.toProperCase();
|
||||
},
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-tablet hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [4],
|
||||
"data": "device_name",
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [5],
|
||||
"data": "platform",
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-tablet hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [6],
|
||||
@@ -83,22 +80,22 @@ sync_table_options = {
|
||||
$(td).html('0MB');
|
||||
}
|
||||
},
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-tablet hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [7],
|
||||
"data": "item_count",
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [8],
|
||||
"data": "item_complete_count",
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-tablet hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [9],
|
||||
"data": "item_downloaded_count",
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-tablet hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [10],
|
||||
@@ -110,7 +107,7 @@ sync_table_options = {
|
||||
$(td).html('<span class="badge">0%</span>');
|
||||
}
|
||||
},
|
||||
"className": "no-wrap"
|
||||
"className": "no-wrap hidden-tablet hidden-phone"
|
||||
}
|
||||
],
|
||||
"drawCallback": function (settings) {
|
||||
|
@@ -1,7 +1,4 @@
|
||||
user_ip_table_options = {
|
||||
"responsive": {
|
||||
details: false
|
||||
},
|
||||
"destroy": true,
|
||||
"language": {
|
||||
"search": "Search: ",
|
||||
@@ -11,7 +8,7 @@ user_ip_table_options = {
|
||||
"infoFiltered":"(filtered from _MAX_ total entries)",
|
||||
"emptyTable": "No data in table",
|
||||
},
|
||||
"stateSave": false,
|
||||
"stateSave": true,
|
||||
"sPaginationType": "bootstrap",
|
||||
"processing": false,
|
||||
"serverSide": true,
|
||||
@@ -54,17 +51,20 @@ user_ip_table_options = {
|
||||
{
|
||||
"targets": [2],
|
||||
"data":"play_count",
|
||||
"width": "10%"
|
||||
"width": "10%",
|
||||
"className": "hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [3],
|
||||
"data":"platform",
|
||||
"width": "15%"
|
||||
"width": "15%",
|
||||
"className": "hidden-phone"
|
||||
},
|
||||
{
|
||||
"targets": [4],
|
||||
"data":"last_watched",
|
||||
"width": "30%"
|
||||
"width": "30%",
|
||||
"className": "hidden-tablet hidden-phone"
|
||||
}
|
||||
],
|
||||
"drawCallback": function (settings) {
|
||||
|
@@ -1,7 +1,4 @@
|
||||
users_list_table_options = {
|
||||
"responsive": {
|
||||
details: false
|
||||
},
|
||||
"language": {
|
||||
"search": "Search: ",
|
||||
"lengthMenu":"Show _MENU_ entries per page",
|
||||
@@ -53,12 +50,14 @@ users_list_table_options = {
|
||||
"data": "started",
|
||||
"render": function ( data, type, full ) {
|
||||
return moment(data, "X").fromNow();
|
||||
}
|
||||
},
|
||||
"className": "hidden-phone",
|
||||
},
|
||||
{
|
||||
"targets": [3],
|
||||
"data": "ip_address",
|
||||
"searchable": false
|
||||
"searchable": false,
|
||||
"className": "hidden-phone",
|
||||
},
|
||||
{
|
||||
"targets": [4],
|
||||
|
Reference in New Issue
Block a user