mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Fixed improper reference to the correct "dateFormat"; fixes #306
This commit is contained in:
parent
6de26e8119
commit
0aadcfb2ff
@ -1387,10 +1387,10 @@
|
||||
format: function(s, table, cell, cellIndex) {
|
||||
if (s) {
|
||||
var c = table.config, ci = c.headerList[cellIndex],
|
||||
format = ci.shortDateFormat;
|
||||
format = ci.dateFormat;
|
||||
if (typeof format === 'undefined') {
|
||||
// cache header formatting so it doesn't getData for every cell in the column
|
||||
format = ci.shortDateFormat = ts.getData( ci, c.headers[cellIndex], 'dateFormat') || c.dateFormat;
|
||||
format = ci.dateFormat = ts.getData( ci, c.headers[cellIndex], 'dateFormat') || c.dateFormat;
|
||||
}
|
||||
s = s.replace(/\s+/g," ").replace(/[\-.,]/g, "/"); // escaped - because JSHint in Firefox was showing it as an error
|
||||
if (format === "mmddyyyy") {
|
||||
|
Loading…
Reference in New Issue
Block a user