Skip to content

Instantly share code, notes, and snippets.

@vgheri
Created June 4, 2012 17:48
Show Gist options
  • Save vgheri/2869810 to your computer and use it in GitHub Desktop.
Save vgheri/2869810 to your computer and use it in GitHub Desktop.
displayRating
function displayRating(selectedId, mouseIn) {
var activeImage = $(".active img");
if (activeImage.data("vote") === null || activeImage.data("vote") === undefined) {
var divs = $(".star-container div").slice(0, parseInt(selectedId)).each(function (item) {
$(this).find("img").attr("src", '/Content/images/full_star.png');
});
$(".star-text").text(getStarShortTextDescription(selectedId));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment