Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tablesorter breaks in Safari on iOS5 #174

Closed
CoreyT355 opened this issue Nov 13, 2012 · 3 comments
Closed

Tablesorter breaks in Safari on iOS5 #174

CoreyT355 opened this issue Nov 13, 2012 · 3 comments

Comments

@CoreyT355
Copy link

I'm using tablesorter 2.4.6 in a mobile site I'm working on. I just ran across an issue in iOS 5 where the tablesorter plugin throws an error. The error points to the following line of code:

h = $headers.filter(':not([colspan])[data-column="' + i + '"]:last,[colspan="1"][data-column="' + i + '"]:last');

I'm trying to figure out a solution to the issue, but I have been unable to do so.

@Mottie
Copy link
Owner

Mottie commented Nov 13, 2012

This is similar to issue #132...

But I should have it fixed in the next update. Basically, I've changed the code to this:

h = $headers.filter(':not([colspan])');
h = h
    .add( $headers.filter('[colspan="1"]') ) // ie8 fix
    .filter('[data-column="' + i + '"]:last');

@CoreyT355
Copy link
Author

I replaced the code in my script and that worked out great. Thanks.

@Mottie
Copy link
Owner

Mottie commented Nov 14, 2012

Ok, the lastest version 2.4.7 has this fix. Thanks for reporting this issue! :)

@Mottie Mottie closed this as completed Nov 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants