| dataTables.hiddenTitle.js - warvox - VoIP based wardialing tool, forked from ra… | |
| git clone git://jay.scot/warvox | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| dataTables.hiddenTitle.js (505B) | |
| --- | |
| 1 jQuery.fn.dataTableExt.oSort['title-numeric-asc'] = function(a,b) { | |
| 2 var x = a.match(/title="*(-?[0-9]+)/)[1]; | |
| 3 var y = b.match(/title="*(-?[0-9]+)/)[1]; | |
| 4 x = parseFloat( x ); | |
| 5 y = parseFloat( y ); | |
| 6 return ((x < y) ? -1 : ((x > y) ? 1 : 0)); | |
| 7 }; | |
| 8 | |
| 9 jQuery.fn.dataTableExt.oSort['title-numeric-desc'] = function(a,b) { | |
| 10 var x = a.match(/title="*(-?[0-9]+)/)[1]; | |
| 11 var y = b.match(/title="*(-?[0-9]+)/)[1]; | |
| 12 x = parseFloat( x ); | |
| 13 y = parseFloat( y ); | |
| 14 return ((x < y) ? 1 : ((x > y) ? -1 : 0)); | |
| 15 }; |