Have to vote twice to get "Rating Saved" to appear.
esllou - April 7, 2008 - 20:56
| Project: | jRating |
| Version: | 5.x-1.0 |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
This is something I noticed the other day and put it down to some wiered browser oddness, but I've just had another friend point out the same thing. When you first vote on a node, the right number of stars turns red, but the little yellow "Rating Saved" box doesn't always appear. If you reload the page, you see that the vote has been counted (both in IE and FF) so it's not a critical error, just wondering why it was happening.

#1
Are you waiting long enough for the response from the server to arrive? Try monitoring with Firebug and see that the vote posting has actually finished and returned a response.
#2
This is what Firebug says:
[X] missing ; before statementdata = 4{ "mean": "2.0", "num_votes": "1", "response": "Rating saved" }
missing ; before statementhttp://www.mysite.com/misc/jquery.js
Line 2
#3
Odd. Where's that "data = 4" coming from?
#4
don't know but I've just done a bit more testing and a pattern is emerging.
If I go to a node that I've rated, I can switch my vote and the "Rating saved" box appears immediately every time. When I then press on the "cancel vote" button to the left of all the stars, voting after that brings up the problem. And this is true when I go to a node where I haven't voted yet.
By the way, in the test I've just done now, I was getting "data = 5" instead of 4.
#5
Are the numbers 4 and 5 the node ids? Can you try disabling your other modules (except for Voting API) and see if the problem is caused by another module inserting something into the output?
If you have a link to your site that might help.