On a teaser list of nodes as is created by taxonomy module (/taxonomy/term/6) - when voting on a node in a teaser, other nodes in the list also change to the same value. suspect problem exists on any node list, not limited to a taxonomy created list.

The good news its only a display issue. If you refresh the browser after voting, the change was correctly saved, and other nodes refresh to their original value.

CommentFileSizeAuthor
#2 updown-score-overwrites.patch1.35 KBcoltrane

Comments

coltrane’s picture

Confirmed, when there are multiple updown widgets on a page a vote for one alters the display of the others.

coltrane’s picture

Title: taxonomy teaser node list - all nodes appear to change » jQuery overwrites all scores
Status: Active » Needs review
StatusFileSize
new1.35 KB

The selectors in the js code were overwriting all scores. The attached patch redefines currentScore, voteElement, and voteUndoElement based on which anchor the event acts on. Patch applies only to updown.js. It assumes a certain markup structure, some documentation would be good for those implementing their own theme functions.

dmitrig01’s picture

Version: » 6.x-1.x-dev
Status: Needs review » Fixed

Thanks! comitted with some of my own modifications

Status: Fixed » Closed (fixed)

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