Skip to content

Commit

Permalink
Use the combination of the 2 fields as data for the Type column
Browse files Browse the repository at this point in the history
to allow correct sorting

Signed-off-by: RD WebDesign <[email protected]>
  • Loading branch information
rdwebdesign committed Feb 4, 2025
1 parent edef3a8 commit 59bd009
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/js/groups-domains.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand All @@ -120,6 +120,12 @@ function initTable() {
return "";
},
},
{
targets: 3,
render: function (data) {
return data.kind + "_" + data.type;
},
},
{
targets: "_all",
render: $.fn.dataTable.render.text(),
Expand Down

0 comments on commit 59bd009

Please sign in to comment.