A user who doesn't have javascript and votes will have the node page refreshed, and the message 'Thank you for your vote' is displayed to him.

There is a typo in the code that causes a JSON array of values to be displayed to the user instead. This can be fixed by changing this block of code:

    if ($json = 'json') {
      // This print statement will return results to jQuery's request.

to:

    if ($json == 'json') {
      // This print statement will return results to jQuery's request.

Comments

Chill35’s picture

Thanks!

Chill35’s picture

Fixed in 6.x-2.4.

Have a great day!

Chill35’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.