posted ago by Doggos

Version 1.1.7.2 (07/31/2020) dynamically updates comment vote breakdowns.

In a recent update, we made public the raw number of upvotes and downvotes that a comment has.

Unlike the score, the upvote and downvote breakdown didn't dynamically change when voting. In this update, when you vote, the breakdown will immediately change.

Update by Trinadin.

Version 1.1.7.2 (07/31/2020) dynamically updates comment vote breakdowns. In a recent update, we made public the raw number of upvotes and downvotes that a comment has. Unlike the score, the upvote and downvote breakdown didn't dynamically change when voting. In this update, when you vote, the breakdown will immediately change. Update by Trinadin.
Comments (4)
sorted by:
5
NYforTrump 5 points ago +5 / -0

BUG REPORT This change doesn't seem to be live in TDW yet but the dynamic breakdown updating incorrectly targets child comments. You probably have an incorrect selector.

5
NYforTrump 5 points ago +5 / -0

This is a child comment where you can see the problem. Just upvote / downvote the parent comment.

4
NYforTrump 4 points ago +4 / -0

Checking the javascript the error is on:

parent.find('.positive span').text(ups - 1);

and similar nearby lines, it should be

parent.find('.positive span').first().text(ups - 1);

2
intamin 2 points ago +2 / -0

Yeah this is properly broken. A parent comment affects all child comments.