mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Added severity to ntopng checks table
This commit is contained in:
parent
933e8339ec
commit
eda4cfb088
48 changed files with 406 additions and 340 deletions
|
|
@ -137,3 +137,22 @@ jQuery.fn.dataTable.ext.type.order['file-size-pre'] = function ( data ) {
|
|||
return -1;
|
||||
};
|
||||
};
|
||||
jQuery.fn.dataTable.ext.type.order['severity-pre'] = function ( data ) {
|
||||
if (data === null || data === '') {
|
||||
return 0;
|
||||
}
|
||||
|
||||
var lowerData = data.toLowerCase()
|
||||
var severities = [
|
||||
'',
|
||||
'none',
|
||||
'info',
|
||||
'notice',
|
||||
'warning',
|
||||
'error',
|
||||
'critical',
|
||||
'emergency',
|
||||
]
|
||||
|
||||
return severities.indexOf(lowerData);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue