I have several blocks having articles (teaser) in my home page managed by custom view, I used thumbs up rate widget in some of those blocks. It seems that when a single article occurs multiple times in home (in different blocks) then the rate widget id becomes something like rate-node-17-1-1--1 and rate-node-17-1-1--2 and so far. It is causing no change on vote count in views but works well in server side. After investigating the issue I found in rate.js it tries to access classes by id rate-node-17-1-1--1 but the class name is rate-node-17-1-1 (line no 40)
widget = $('.' + widget.attr('id'));
So it should not cast changes to view due to the mismatch. If I change that line to following I works perfectly
widget = $('.' + widget.attr('id').split('--')[0]);
Can any one please ensure me that the problem stands there?
Comments
Comment #2
yepasee ID and classID inconsistency for multiple widgets due to drupal_html_id()