wbotelhos/raty — pull request #75 by 35pr17 (2013-05-31 22:59:44+00:00)
Title: Amending the functionality to support readOnly custom messages on title elements.

I need to display custom message with precision value of rating on hover/title so I've made a quick hack to do that as I haven't found any other way to do so. Below is config I use, the example can be found on http://www.librarist.com/us/book/9781477246825/.

BTW I've definitely broken some other functionality (at least the non-rated yet message is now affected so take this just as half-baked idea please and feel free to re-factor.

var ratyConfig = {
hints: [ '', '', '', '', '' ],
readOnly: true,
path: '/resources/img',
targetText: 'The average rating is {score} - click for more details',
score: function() {
return $(this).attr('data-score');
}
};