mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-12-05 05:04:20 +00:00
4 lines
588 B
JavaScript
4 lines
588 B
JavaScript
/*! Parser: dates - updated 5/24/2017 (v2.28.11) */
|
|
!function(e){"use strict";/*! Sugar (https://sugarjs.com/docs/#/DateParsing) */
|
|
e.tablesorter.addParser({id:"sugar",is:function(){return!1},format:function(e){var t=Date.create||Sugar.Date.create,r=t?t(e):e?new Date(e):e;return r instanceof Date&&isFinite(r)?r.getTime():e},type:"numeric"}),/*! Datejs (http://www.datejs.com/) */
|
|
e.tablesorter.addParser({id:"datejs",is:function(){return!1},format:function(e){var t=Date.parse?Date.parse(e):e?new Date(e):e;return t instanceof Date&&isFinite(t)?t.getTime():e},type:"numeric"})}(jQuery); |