Fix IE8 class name parsers, issue #74

This commit is contained in:
Rob Garrison 2012-05-20 08:24:22 -05:00
parent 83ccdb2bde
commit d54c72023d
4 changed files with 7 additions and 6 deletions

Binary file not shown.

View File

@ -1,5 +1,5 @@
/*! /*!
* TableSorter 2.3.3 - Client-side table sorting with ease! * TableSorter 2.3.4 - Client-side table sorting with ease!
* @requires jQuery v1.2.6+ * @requires jQuery v1.2.6+
* *
* Copyright (c) 2007 Christian Bach * Copyright (c) 2007 Christian Bach
@ -18,7 +18,7 @@
$.extend({ $.extend({
tablesorter: new function() { tablesorter: new function() {
this.version = "2.3.3"; this.version = "2.3.4";
var parsers = [], widgets = []; var parsers = [], widgets = [];
this.defaults = { this.defaults = {
@ -165,7 +165,8 @@
list = []; list = [];
l = rows[0].cells.length; l = rows[0].cells.length;
for (i = 0; i < l; i++) { for (i = 0; i < l; i++) {
h = $headers.filter(':not([colspan])[data-column="'+i+'"]:last'); // tons of thanks to AnthonyM1229 for working out the following selector (issue #74) to make this work in IE8!
h = $headers.filter(':not([colspan])[data-column="'+i+'"]:last,[colspan="1"][data-column="'+i+'"]:last');
ch = c.headers[i]; ch = c.headers[i];
// get column parser // get column parser
p = getParserById( ts.getData(h, ch, 'sorter') ); p = getParserById( ts.getData(h, ch, 'sorter') );

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{ {
"name": "tablesorter", "name": "tablesorter",
"version": "2.3.3", "version": "2.3.4",
"title": "tablesorter", "title": "tablesorter",
"author": { "author": {
"name": "Christian Bach", "name": "Christian Bach",