mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Updated checks ordering
This commit is contained in:
parent
91e8ae8f04
commit
6106cbad65
4 changed files with 24 additions and 8 deletions
|
|
@ -104,7 +104,6 @@ jQuery.extend(jQuery.fn.dataTableExt.oSort, {
|
|||
"bytes-asc": function (a, b) {
|
||||
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
|
||||
},
|
||||
|
||||
"bytes-desc": function (a, b) {
|
||||
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
|
||||
}
|
||||
|
|
@ -143,6 +142,9 @@ jQuery.fn.dataTable.ext.type.order['severity-pre'] = function ( data ) {
|
|||
}
|
||||
|
||||
var lowerData = data.toLowerCase()
|
||||
var iclassIndex = data.indexOf('<')
|
||||
lowerData = lowerData.slice(0, iclassIndex - 1)
|
||||
|
||||
var severities = [
|
||||
'',
|
||||
'none',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue