New class to handle Datatables requests (very rough still)

Start cleaning up webserve
This commit is contained in:
Tim 2015-06-19 14:40:29 +02:00
commit 7e238d6e62
6 changed files with 594 additions and 224 deletions

View file

@ -57,7 +57,7 @@
"lengthMenu":"Show _MENU_ entries per page",
"info":"Showing _START_ to _END_ of _TOTAL_ active users",
"infoEmpty":"Showing 0 to 0 of 0 entries",
"infoFiltered":"(filtered from _MAX_ total entries)",
"infoFiltered":"",
"emptyTable": "No data in table",
},
"destroy": true,
@ -80,11 +80,11 @@
"targets": [0],
"data": null,
"createdCell": function (td, cellData, rowData, row, col) {
if (rowData['user_thumb'] === '') {
//if (rowData['user_thumb'] === '') {
$(td).html('<img src="interfaces/default/images/gravatar-default-80x80.png" alt="User Logo"/>');
} else {
$(td).html('<img src="' + rowData['user_thumb'] + '" alt="User Logo"/>');
}
//} else {
// $(td).html('<img src="' + rowData['user_thumb'] + '" alt="User Logo"/>');
//}
},
"orderable": false,
"className": "users-poster-face",
@ -103,7 +103,8 @@
},
{
"targets": [3],
"data": "ip_address"
"data": "ip_address",
"searchable": false
},
{
"targets": [4],