Permalink
Browse files

pager & stickyHeaders widget bug fixes - see issue #175

  • Loading branch information...
1 parent 322a4b1 commit 9b763d5baa73aa944c132d7f462fcef93d54069b @Mottie committed Nov 16, 2012
View
Binary file not shown.
@@ -1,6 +1,6 @@
/*!
* tablesorter pager plugin
- * updated 10/25/2012
+ * updated 11/15/2012
*/
/*jshint browser:true, jquery:true */
;(function($) {
@@ -413,6 +413,8 @@
$this.construct = function(settings) {
return this.each(function() {
+ // check if tablesorter has initialized
+ if (!(this.config && this.hasInitialized)) { return; }
var config = this.config,
c = config.pager = $.extend( {}, $.tablesorterPager.defaults, settings ),
table = this,

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,5 +1,5 @@
/*!
-* TableSorter 2.4.7 - Client-side table sorting with ease!
+* TableSorter 2.4.8 - Client-side table sorting with ease!
* @requires jQuery v1.2.6+
*
* Copyright (c) 2007 Christian Bach
@@ -23,7 +23,7 @@
var ts = this;
- ts.version = "2.4.7";
+ ts.version = "2.4.8";
ts.parsers = [];
ts.widgets = [];

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,4 +1,4 @@
-/*! tableSorter 2.4+ widgets - updated 11/14/2012
+/*! tableSorter 2.4+ widgets - updated 11/15/2012
*
* Column Styles
* Column Filters
@@ -675,7 +675,7 @@ $.tablesorter.addWidget({
innr = '.tablesorter-header-inner',
firstRow = hdrCells.eq(0).parent(),
tfoot = $table.find('tfoot'),
- t2 = $table.clone(),
+ t2 = $table.clone(), // clone table, but don't remove id... the table might be styled by css
// clone the entire thead - seems to work in IE8+
stkyHdr = t2.children('thead:first')
.addClass(css)
@@ -755,7 +755,8 @@ $.tablesorter.addWidget({
return false;
});
});
- $table.before( t2 );
+ // add stickyheaders AFTER the table. If the table is selected by ID, the original one (first) will be returned.
+ $table.after( t2 );
// make it sticky!
win
.bind('scroll.tsSticky', function(){

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
{
"name": "tablesorter",
- "version": "2.4.7",
+ "version": "2.4.8",
"title": "tablesorter",
"author": {
"name": "Christian Bach",

0 comments on commit 9b763d5

Please sign in to comment.