StickyHeaders: fix js error. See #920

This commit is contained in:
Mottie 2015-05-29 07:16:31 -05:00
parent bbe5d53e14
commit f315a8f02d
10 changed files with 19 additions and 19 deletions

View File

@ -1,4 +1,4 @@
/*! tablesorter (FORK) - updated 05-21-2015 (v2.22.1)*/
/*! tablesorter (FORK) - updated 05-29-2015 (v2.22.1)*/
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
(function(factory) {
if (typeof define === 'function' && define.amd) {
@ -2150,7 +2150,7 @@
format: function(table, c, wo) {
var $tv, $tr, row, even, time, k, i, len,
child = new RegExp(c.cssChildRow, 'i'),
b = c.$tbodies.add( $( c.namespace + '_extra_table' ).children( 'tbody' ) );
b = c.$tbodies.add( $( c.namespace + '_extra_table' ).children( 'tbody:not(.' + c.cssInfoBlock + ')' ) );
if (c.debug) {
time = new Date();
}
@ -4235,7 +4235,7 @@ ts.addWidget({
} else {
if ($cell.css('border-collapse') === 'collapse') {
if (window.getComputedStyle) {
width = parseFloat( window.getComputedStyle(this, null).width );
width = parseFloat( window.getComputedStyle($this[0], null).width );
} else {
// ie8 only
border = parseFloat( $this.css('border-width') );

File diff suppressed because one or more lines are too long

View File

@ -2148,7 +2148,7 @@
format: function(table, c, wo) {
var $tv, $tr, row, even, time, k, i, len,
child = new RegExp(c.cssChildRow, 'i'),
b = c.$tbodies.add( $( c.namespace + '_extra_table' ).children( 'tbody' ) );
b = c.$tbodies.add( $( c.namespace + '_extra_table' ).children( 'tbody:not(.' + c.cssInfoBlock + ')' ) );
if (c.debug) {
time = new Date();
}

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
/*! tablesorter (FORK) - updated 05-21-2015 (v2.22.1)*/
/*! tablesorter (FORK) - updated 05-29-2015 (v2.22.1)*/
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
(function(factory) {
if (typeof define === 'function' && define.amd) {
@ -2060,7 +2060,7 @@ ts.addWidget({
} else {
if ($cell.css('border-collapse') === 'collapse') {
if (window.getComputedStyle) {
width = parseFloat( window.getComputedStyle(this, null).width );
width = parseFloat( window.getComputedStyle($this[0], null).width );
} else {
// ie8 only
border = parseFloat( $this.css('border-width') );

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*/
/*! tablesorter (FORK) - updated 05-21-2015 (v2.22.1)*/
/*! tablesorter (FORK) - updated 05-29-2015 (v2.22.1)*/
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
(function(factory) {
if (typeof define === 'function' && define.amd) {
@ -2156,7 +2156,7 @@
format: function(table, c, wo) {
var $tv, $tr, row, even, time, k, i, len,
child = new RegExp(c.cssChildRow, 'i'),
b = c.$tbodies.add( $( c.namespace + '_extra_table' ).children( 'tbody' ) );
b = c.$tbodies.add( $( c.namespace + '_extra_table' ).children( 'tbody:not(.' + c.cssInfoBlock + ')' ) );
if (c.debug) {
time = new Date();
}
@ -4241,7 +4241,7 @@ ts.addWidget({
} else {
if ($cell.css('border-collapse') === 'collapse') {
if (window.getComputedStyle) {
width = parseFloat( window.getComputedStyle(this, null).width );
width = parseFloat( window.getComputedStyle($this[0], null).width );
} else {
// ie8 only
border = parseFloat( $this.css('border-width') );

View File

@ -4,7 +4,7 @@
*/
/*! tablesorter (FORK) - updated 05-21-2015 (v2.22.1)*/
/*! tablesorter (FORK) - updated 05-29-2015 (v2.22.1)*/
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
(function(factory) {
if (typeof define === 'function' && define.amd) {
@ -2066,7 +2066,7 @@ ts.addWidget({
} else {
if ($cell.css('border-collapse') === 'collapse') {
if (window.getComputedStyle) {
width = parseFloat( window.getComputedStyle(this, null).width );
width = parseFloat( window.getComputedStyle($this[0], null).width );
} else {
// ie8 only
border = parseFloat( $this.css('border-width') );

View File

@ -127,7 +127,7 @@ ts.addWidget({
} else {
if ($cell.css('border-collapse') === 'collapse') {
if (window.getComputedStyle) {
width = parseFloat( window.getComputedStyle(this, null).width );
width = parseFloat( window.getComputedStyle($this[0], null).width );
} else {
// ie8 only
border = parseFloat( $this.css('border-width') );