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

Memorize current sorted column when sorting by click #45

Open
Purpleskill opened this issue Jan 14, 2022 · 0 comments
Open

Memorize current sorted column when sorting by click #45

Purpleskill opened this issue Jan 14, 2022 · 0 comments

Comments

@Purpleskill
Copy link

When clicking on a column to sort, the new sorting column isn't stored in $th.

Example :
tablesort.sort($("th.t1"))

tablesort.$th is now th.t1 element

Then, clicking on th.t2 column to sort

tablesort.$th is still th.t1 element. No update.

Proposed fix :
Store new sorted column element in $th

Purpleskill added a commit to Purpleskill/jquery-tablesort that referenced this issue Jan 14, 2022
Memorize current sorted column when sorted by click.
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