Use name in the name column, and fix link.
The template was a little mangled (missing href=), and the ip address was the preferred value for the name column - switch it to name
This commit is contained in:
@@ -25,7 +25,7 @@ $(document).ready(function() {
|
|||||||
{
|
{
|
||||||
"data": 'ip',
|
"data": 'ip',
|
||||||
"render": function(data, type, row, meta) {
|
"render": function(data, type, row, meta) {
|
||||||
return '<a search_device %]&q=' + encodeURIComponent(data) + '">' + he.encode(row.ip || row.name) + '</a>';
|
return '<a href="[% search_device %]&q=' + encodeURIComponent(data) + '">' + he.encode(row.name || row.ip) + '</a>';
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
"data": 'dns',
|
"data": 'dns',
|
||||||
|
|||||||
Reference in New Issue
Block a user