relocate repo files so ND2 is the only code
This commit is contained in:
18
share/public/javascripts/dataTables.ip-address-detect.js
Normal file
18
share/public/javascripts/dataTables.ip-address-detect.js
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Automatically detect IP addresses in dot notation. Goes perfectly with the
|
||||
* IP address sorting function.
|
||||
*
|
||||
* @name IP address detection
|
||||
* @summary Detect data which is in IP address notation
|
||||
* @author Brad Wasson
|
||||
*/
|
||||
|
||||
jQuery.fn.dataTableExt.aTypes.unshift(
|
||||
function ( sData )
|
||||
{
|
||||
if (/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(sData)) {
|
||||
return 'ip-address';
|
||||
}
|
||||
return null;
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user