Merge pull request #369 from miodragbogdanovic/patch-2

IP address field is empty bug
pull/425/head
Allan Jardine 7 years ago committed by GitHub
commit a7cc270b20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,6 +18,7 @@
jQuery.extend( jQuery.fn.dataTableExt.oSort, { jQuery.extend( jQuery.fn.dataTableExt.oSort, {
"ip-address-pre": function ( a ) { "ip-address-pre": function ( a ) {
if (!a) { return 0 }
var i, item; var i, item;
var m = a.split("."), var m = a.split("."),
n = a.split(":"), n = a.split(":"),
@ -100,4 +101,4 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, {
"ip-address-desc": function ( a, b ) { "ip-address-desc": function ( a, b ) {
return ((a < b) ? 1 : ((a > b) ? -1 : 0)); return ((a < b) ? 1 : ((a > b) ? -1 : 0));
} }
}); });

Loading…
Cancel
Save