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: /**
* This sorting plug-in will sort, in calendar order, data which
* is in the format "MMM yyyy" or "MMMM yyyy". Inspired by forum discussion:
* http://datatables.net/forums/discussion/1242/sorting-dates-with-only-month-and-year
*
* Please note that this plug-in is **deprecated*. The
* [datetime](//datatables.net/blog/2014-12-18) plug-in provides enhanced
* functionality and flexibility.
*
* @name Date (MMM yyyy) or (MMMM yyyy)
* @anchor Sort dates in the format `MMM yyyy` or `MMMM yyyy`
* @author Phil Hurwitz
* @deprecated
*
* @example
* $('#example').DataTable( {
* columnDefs: [
* { type: 'stringMonthYear', targets: 0 }
* ]
* } );
*/
jQuery.extend(jQuery.fn.dataTableExt.oSort, {
"stringMonthYear-pre": function (s) {
var months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
var dateComponents = s.split(" ");
dateComponents[0] = dateComponents[0].replace(",", "");
dateComponents[1] = jQuery.trim(dateComponents[1]);
var year = dateComponents[1];
var month = 0;
for (var i = 0; i < months.length; i++) {
if (months[i].toLowerCase() == dateComponents[0].toLowerCase().substring(0,3)) {
month = i;
break;
}
}
return new Date(year, month, 1);
},
"stringMonthYear-asc": function (a, b) {
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
},
"stringMonthYear-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 ]-- |