Active
Project:
Advanced Poll
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2014 at 07:18 UTC
Updated:
30 Apr 2014 at 21:37 UTC
Jump to comment: Most recent
Advanced ranking poll works well when the behavior is set to Borda count (Ranking Poll) and Instant-runoff (Ranking Poll), but the vote is not saved when the behavior is set to Borda count drag and drop (Ranking Poll) and Instant-runoff drag and drop (Ranking Poll).
UPDATE: I'm investigating this further with a clean install and it appears to be related to the jquery: it works with jquery 1.5, but not 1.7. Unfortunately, I need to use 1.7 for my theme. I will continue to investigate, but if anyone has ideas about what has changed between 1.5 and 1.7 that would cause the draggable advanced ranking poll not to save the vote, I would appreciate your response.
Comments
Comment #1
tchase commentedI found the problem: As of jQuery 1.6, the .attr() method returns undefined for attributes that have not been set. To retrieve and change DOM properties such as the checked, selected, or disabled state of form elements, use the .prop() method. (source: https://api.jquery.com/attr/). This required changes to the following lines in advpoll-ranking.js -