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

Refactor sorting and only sort when userlist exists, fixes #60 #61

Merged
merged 3 commits into from
Jul 18, 2021

Conversation

Smidqe
Copy link
Contributor

@Smidqe Smidqe commented Jun 7, 2021

Fixes two issues, attempting to sort before things have even properly loaded and grabbing nicks through .data(), since .text() grabs all text within the element and its descendants. Also reduced the duplicate code.

Needs more testing, so it'll stay as draft for now.

web/js/init.js Show resolved Hide resolved
@Smidqe Smidqe marked this pull request as ready for review June 7, 2021 13:59
@Atte Atte merged commit aa59a9e into BTDev:master Jul 18, 2021
@Atte Atte linked an issue Jul 26, 2021 that may be closed by this pull request
@Smidqe Smidqe deleted the fix/too-early-sort branch November 24, 2021 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Userlist sometimes fails to sort on page load if BT is not the active tab
2 participants