Merge "jquery.tablesorter: testcases for the parsers"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 17 Feb 2015 13:42:22 +0000 (13:42 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 17 Feb 2015 13:42:22 +0000 (13:42 +0000)
1  2 
resources/src/jquery/jquery.tablesorter.js

  
                        clearTableBody: function ( table ) {
                                $( table.tBodies[0] ).empty();
+                       },
+                       getParser: function ( id ) {
+                               buildTransformTable();
+                               buildDateTable();
+                               cacheRegexs();
+                               buildCollationTable();
+                               return getParserById( id );
                        }
                };
  
                                        return '99999999';
                                }
                        } else if ( ( match = s.match( ts.dateRegex[1] ) ) !== null ) {
 -                              s = [ match[3], '' + ts.monthNames[match[2]], match[1] ];
 +                              s = [ match[3], String( ts.monthNames[match[2]] ), match[1] ];
                        } else if ( ( match = s.match( ts.dateRegex[2] ) ) !== null ) {
 -                              s = [ match[3], '' + ts.monthNames[match[1]], match[2] ];
 +                              s = [ match[3], String( ts.monthNames[match[1]] ), match[2] ];
                        } else {
                                // Should never get here
                                return '99999999';