- Initializing score using raty plugin
- jQuery.each($('.new_star'), function(index, element){
- var rating = jQuery(this).attr('data-rating');
- jQuery(element).raty({
- readOnly : true,
- half : true,
- path : '/assets/images/',
- starOff : 'star-off.png',
- starHalf : 'star-half.png',
- starOn : 'star-on.png',
- 'score' : rating
- });
- });