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

[solved] initialSortedColumn does not work. #9

Open
foxnoodles opened this issue Apr 9, 2021 · 0 comments
Open

[solved] initialSortedColumn does not work. #9

foxnoodles opened this issue Apr 9, 2021 · 0 comments

Comments

@foxnoodles
Copy link

foxnoodles commented Apr 9, 2021

I know this project is old but still. initialSortedColumn does not work at all.

Can be fixed by replacing the for loop inside init function with this:

for( i = 0; i < that.ths.length; i++ ) { addEvent( that.ths[i], 'click', that.boundSort ); if (i == that.prevCol) { that.ths[i].click(); } }

I'm too lazy to create a PR.

@foxnoodles foxnoodles changed the title initialSortedColumn does not work. [solved] initialSortedColumn does not work. Apr 9, 2021
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

1 participant