From: Derk-Jan Hartman Date: Thu, 23 Jun 2011 17:12:36 +0000 (+0000) Subject: Fix global var leaking that was making collationsort fail on Safari 5 X-Git-Tag: 1.31.0-rc.0~29330 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=9763099ca1ad58f3fed8821d82963dd34acd2ce2;p=lhc%2Fweb%2Fwiklou.git Fix global var leaking that was making collationsort fail on Safari 5 Followup to r86088. --- diff --git a/resources/jquery/jquery.tablesorter.js b/resources/jquery/jquery.tablesorter.js index 75c2520774..3f8c28c47f 100644 --- a/resources/jquery/jquery.tablesorter.js +++ b/resources/jquery/jquery.tablesorter.js @@ -817,6 +817,7 @@ //Pad Month and Day if ( s[0] && s[0].length == 1 ) s[0] = "0" + s[0]; if ( s[1] && s[1].length == 1 ) s[1] = "0" + s[1]; + var y; if ( !s[2] ) { //Fix yearless dates