-
Notifications
You must be signed in to change notification settings - Fork 5
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
User Labels - Voting a comment make the labels disappear #8
Comments
As a workaround I'm refreshing the labels after 500msec for now. It's a weird way, from tildes, to reload a whole object anyway when simply voting. I would have expected at most that the object received back was the 'vote button' or just the updated vote counts. |
@theCrius You can use |
I didn't think about the MutationObserver... that'll teach me to not code late at night :( However I never used it but I created this project to try stuff I never used! I'll give it a look and update this issue in case I've issue, thanks! |
Mhm, something's not right. I've wrote a basic observer to detect changes:
But while it detect changes on the page load, it doesn't detect changes when I click on a vote button. If you feel like wasting some time on it, I'll appreciate a pull request (or if you can point out where I'm doing it wrong as well!) I'm afraid it has something to do with intercooler.js on tildes. |
I'll take a look. |
Clean up and deal with missing node to observe (for page with no comments) |
Report from the user apoctr:
Apparently whenever a vote is casted, the whole comment is being sent back as response instead of just a json data that update the view.
I suppose I can try and intercept the click on the vote button and rebuild the label for that comment.
The text was updated successfully, but these errors were encountered: