Needs review
Project:
Vote Up/Down
Version:
7.x-1.x-dev
Component:
vud_field
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2012 at 14:45 UTC
Updated:
18 Apr 2017 at 00:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kingdee40 commentedI'm having a similar issue, every time a user clicks to vote, the nodes are duplicated.
I have a View with Panel fields display.
Comment #2
kingdee40 commentedSolved by marking the view distinct, but probably still an issue.
Comment #3
labs commentedDid anyone ever look into the original problem (each vote creates a new div around the widget)? I can try to look at this, but I'm a newb. Any pointers appreciated.
Comment #4
itangalo commentedAs far as I know, noone has looked into the original problem.
A good place to start is to look at the ajax callback that replaces the clickable element. If you look at the vud.module file and the vud_menu() function, there should be something saying what function is called when a vote link is clicked. That function probably has some problems – or possibly how it is called.
Good luck!
Comment #5
labs commentedThanks much. I'll report back if I make any progress.
Comment #6
henrijs.seso commentedajax_command_replacecould beajax_command_htmlas _replace wraps all responses in empty div.We are not alone. Original problem in misc/ajax.js.
Comment #7
henrijs.seso commentedSomething like this. Added small helper function that strips newlines from rendered widgets.
Comment #8
marvil07 commented