Software: Apache. PHP/5.3.29 uname -a: Linux tardis23.nocplanet.net 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024
Safe-mode: OFF (not secure) /home/memoriacel/public_html/2018/panel/bower_components/datatables-plugins/sorting/ drwxr-xr-x | |
| Viewing file: Select action/file-type: /**
* Sort numeric data which has a percent sign with it.
*
* DataTables 1.10+ has percentage data type detection and sorting abilities
* built-in. As such this plug-in is marked as deprecated, but might be useful
* when working with old versions of DataTables.
*
* @name Percentage
* @summary Sort numeric data with a postfixed percentage symbol
* @deprecated
* @author [Jonathan Romley](http://jonathanromley.org/)
*
* @example
* $('#example').dataTable( {
* columnDefs: [
* { type: 'percent', targets: 0 }
* ]
* } );
*/
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
"percent-pre": function ( a ) {
var x = (a == "-") ? 0 : a.replace( /%/, "" );
return parseFloat( x );
},
"percent-asc": function ( a, b ) {
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
},
"percent-desc": function ( a, b ) {
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
}
} );
|
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0009 ]-- |