]> git.ipfire.org Git - thirdparty/sarg.git/commit - sorttable/sorttable.js
Protect the columns sorting against missing or invalid dates
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Mon, 4 Jul 2011 11:55:43 +0000 (11:55 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Mon, 4 Jul 2011 11:55:43 +0000 (11:55 +0000)
commit2ef1d246dfb6eefab14cd811b8acb530ade9673b
tree266c7904fdd9a5658e7762058bf9b793536831b3
parent2fbfe6664d02b76e54ef037af2722fa8648210e6
Protect the columns sorting against missing or invalid dates

Sorttable.js fails on columns containing a date on the first row but not on
subsequent rows. This patch assumes a zero date for any missing or invalid date
sorting those rows at the top of the table.
sorttable/sorttable.js