From 0aadcfb2ff8e98242b43c18e8eba215e01a8317d Mon Sep 17 00:00:00 2001 From: Mottie Date: Tue, 14 May 2013 15:51:43 -0500 Subject: [PATCH] Fixed improper reference to the correct "dateFormat"; fixes #306 --- js/jquery.tablesorter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.tablesorter.js b/js/jquery.tablesorter.js index 5ba4e529..194129b2 100644 --- a/js/jquery.tablesorter.js +++ b/js/jquery.tablesorter.js @@ -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") {