mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Use the combination of the 2 fields as data for the Type column
to allow correct sorting Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -106,7 +106,7 @@ function initTable() {
|
||||
{ data: "id", visible: false },
|
||||
{ data: null, visible: true, orderable: false, width: "15px" },
|
||||
{ data: "domain" },
|
||||
{ data: "type", searchable: false },
|
||||
{ data: null, searchable: false },
|
||||
{ data: "enabled", searchable: false },
|
||||
{ data: "comment" },
|
||||
{ data: "groups", searchable: false },
|
||||
@@ -120,6 +120,12 @@ function initTable() {
|
||||
return "";
|
||||
},
|
||||
},
|
||||
{
|
||||
targets: 3,
|
||||
render: function (data) {
|
||||
return data.kind + "_" + data.type;
|
||||
},
|
||||
},
|
||||
{
|
||||
targets: "_all",
|
||||
render: $.fn.dataTable.render.text(),
|
||||
|
||||
Reference in New Issue
Block a user