Use custom portsort plug-in on port columns within DataTables not using server-side processing
This commit is contained in:
@@ -34,8 +34,11 @@ $(document).ready(function() {
|
||||
}
|
||||
}, {
|
||||
"data": 'port',
|
||||
"type": 'portsort',
|
||||
"render": function(data, type, row, meta) {
|
||||
return '<a href="[% device_ports %]&q=' + encodeURIComponent(row.ip) + '&f=' + encodeURIComponent(data) + '">' + he.encode(data || '') + '</a>';
|
||||
return type === 'display' ?
|
||||
'<a href="[% device_ports %]&q=' + encodeURIComponent(row.ip) + '&f=' + encodeURIComponent(data) + '">' + he.encode(data || '') + '</a>' :
|
||||
data;
|
||||
}
|
||||
}, {
|
||||
"data": 'name',
|
||||
|
||||
Reference in New Issue
Block a user