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:
Bill Fenner
2014-07-21 00:10:10 +00:00
parent 470c106131
commit b86ff6580e

View File

@@ -25,7 +25,7 @@ $(document).ready(function() {
{
"data": 'ip',
"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',