When I upvote someone's post it should increment the number and toggle to an X to remove my upvote. On the backend this is still what happens, apparently, based on refreshing the page. But what I observe is that I upvote and the number increments, but the button remains an up arrow and I can keep clicking it and the number keeps incrementing. Again, based on playing around with it and then refreshing the page, the backend is toggling my upvote as it should, so I don't think there's an issue with multiple-upvoting, just the UI not switching the button properly.
Yeah, same behavior. It continues incrementing when I click the up arrow. If I click an even number of times and refresh, it will be the same (0 or 1) as when I last refreshed. If I click an odd number of times, it will be the opposite.
Chrome 60 on Windows 10. No javascript errors in the console.
RESOLVED
I poked around the javascript that is set to listen to the click event on that input and set some breakpoints to walk through it. It seems that it adds a value to the Ratings cookie in addCookieValue() in Cobalt.Rating.js before adding/removing the "liked" class to .num-likes and #field-like in setLike().
But it just continually appends to that cookie. My problem occurred because my Ratings cookie was huge. After I deleted it everything worked fine. It could have been encountering a parsing error. Not sure the exact error because I didn't set breakpoints and walk through the execution until after I'd deleted that cookie.
If the content of the Ratings cookie is unimportant to the backend, that might as well be stored in local storage instead of a cookie.
Edit: For curiosity's sake, I'm probably going to try to recreate this later.
old thread
old thread
old thread
R Zada Arcane Storm
RBU Marchesa
GWU Estrid
GWR Samut?
URB Kess
(R/W)(U/B) Akiri & Silas
BWR Alesha
R Neheb Dragons
G Nylea Wurms
W Darien
U Tetsuko
If it does, what browser/device/version/etc are you using?
No longer staff here.
Chrome 60 on Windows 10. No javascript errors in the console.
RESOLVED
I poked around the javascript that is set to listen to the click event on that input and set some breakpoints to walk through it. It seems that it adds a value to the Ratings cookie in addCookieValue() in Cobalt.Rating.js before adding/removing the "liked" class to .num-likes and #field-like in setLike().
But it just continually appends to that cookie. My problem occurred because my Ratings cookie was huge. After I deleted it everything worked fine. It could have been encountering a parsing error. Not sure the exact error because I didn't set breakpoints and walk through the execution until after I'd deleted that cookie.
If the content of the Ratings cookie is unimportant to the backend, that might as well be stored in local storage instead of a cookie.
Edit: For curiosity's sake, I'm probably going to try to recreate this later.
old thread
old thread
old thread
R Zada Arcane Storm
RBU Marchesa
GWU Estrid
GWR Samut?
URB Kess
(R/W)(U/B) Akiri & Silas
BWR Alesha
R Neheb Dragons
G Nylea Wurms
W Darien
U Tetsuko
I reported this in June:
http://www.mtgsalvation.com/forums/community-forums/community-discussion/forum-software-feedback-and-bug/779186-like-button-bugged
http://forums.mtgsalvation.com/showpost.php?p=4557651&postcount=1
TheWarden's Creative Commons Music Pick Project (Retired):
http://forums.mtgsalvation.com/showthread.php?t=336498