2015-03-28 20:03:50 +00:00
|
|
|
/*! Parser: dates - updated 10/26/2014 (v2.18.0) */
|
2015-10-31 15:08:21 +00:00
|
|
|
/* Extract dates using popular natural language date parsers */
|
|
|
|
/*jshint jquery:true */
|
2015-03-28 20:03:50 +00:00
|
|
|
!function(a){"use strict";/*! Sugar (http://sugarjs.com/dates#comparing_dates) */
|
2015-10-31 15:08:21 +00:00
|
|
|
/* demo: http://jsfiddle.net/Mottie/abkNM/4163/ */
|
2015-03-28 20:03:50 +00:00
|
|
|
a.tablesorter.addParser({id:"sugar",is:function(){return!1},format:function(a){var b=Date.create?Date.create(a):a?new Date(a):a;return b instanceof Date&&isFinite(b)?b.getTime():a},type:"numeric"}),/*! Datejs (http://www.datejs.com/) */
|
2015-10-31 15:08:21 +00:00
|
|
|
/* demo: http://jsfiddle.net/Mottie/abkNM/4164/ */
|
2015-02-13 04:13:45 +00:00
|
|
|
a.tablesorter.addParser({id:"datejs",is:function(){return!1},format:function(a){var b=Date.parse?Date.parse(a):a?new Date(a):a;return b instanceof Date&&isFinite(b)?b.getTime():a},type:"numeric"})}(jQuery);
|