Index: fivestar.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/fivestar/js/Attic/fivestar.js,v retrieving revision 1.1.4.6 diff -u -r1.1.4.6 fivestar.js --- fivestar.js 26 Apr 2008 18:30:03 -0000 1.1.4.6 +++ fivestar.js 17 Nov 2008 15:01:18 -0000 @@ -162,7 +162,7 @@ var index = $stars.index(el) + 1; $stars .children('a').css('width', '100%').end() - .filter(':lt(' + index + ')').addClass('hover').end(); + .filter(':eq(' + (index - 1) + ')').addClass('hover').end(); // Update the description text and label. if (summaryHover && !feedbackTimerId) { var summary = $("select option", $obj)[index + $cancel.size()].text; @@ -189,7 +189,7 @@ // Reset the stars to the default index. var starValue = currentValue/100 * $stars.size(); var percent = (starValue - Math.floor(starValue)) * 100; - $stars.filter(':lt(' + Math.floor(starValue) + ')').addClass('on').end(); + $stars.filter(':eq(' + Math.floor(starValue - 1) + ')').addClass('on').end(); if (percent > 0) { $stars.eq(Math.floor(starValue)).addClass('on').children('a').css('width', percent + "%").end().end(); }