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

javascript error when applying both sortList and headers options #36

Open
selbekk opened this issue Sep 3, 2014 · 2 comments
Open

javascript error when applying both sortList and headers options #36

selbekk opened this issue Sep 3, 2014 · 2 comments

Comments

@selbekk
Copy link

selbekk commented Sep 3, 2014

When you apply both the sortList and headers options, you get an error right after the page loads.

When you add the sortList option, if I remember correctly, the form sorts itself once the page is loaded. When you add the headers option, you decide which of the colums are sortable.

When you add them both, and set it up so that the list is sorted on some of the unsortable columns specified in headers, you get an Cannot read property 'addClass' of undefined error. This error stems from a rather weird implementation in the setHeadersCss method.

Hope you can fix this somehow :)

@jonbartels
Copy link

Did you ever find a resolution to this issue? I'm having the same error report. I am setting both headers and sortList

@jonbartels
Copy link

This may not be a bug per-se. In my case I had headers defined for columns 0 and 1. I was sorting on columns 0 and 1 also. Then when I deployed to test (instead of dev) the table that was being sorted had an additional column added (because of some other setting) which did not have a header defined. This led to tablesorter not having a sorter and failing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants