Index: lams_central/web/includes/javascript/rating.js =================================================================== diff -u -rea524263f156c603304a643485fce224e909eff3 -r74aa49c35a728a684dca03c0360f88e51d1fa2d5 --- lams_central/web/includes/javascript/rating.js (.../rating.js) (revision ea524263f156c603304a643485fce224e909eff3) +++ lams_central/web/includes/javascript/rating.js (.../rating.js) (revision 74aa49c35a728a684dca03c0360f88e51d1fa2d5) @@ -75,7 +75,20 @@ handleError(); } }); - + + // LDEV-4495 Add an already rated on to stash of already rated ids. Then they won't be disabled when the user has + // already rated as many as they can but they return to the screen to reeerate + if (HAS_RATING_LIMITS && MAX_RATES != 0) { + $(".rating-stars-new").filter($(".rating-stars")).each(function() { + var average = $(this).data("average"); // unrated have average 0 to start + if ( average > 0 ) { + var newItemId = getItemIdFromObjectId($(this).data("id")); + if ( idsBeingRated.indexOf(newItemId) == -1 ) + idsBeingRated.push(newItemId) + } + }); + } + $(".rating-stars-new").filter($(".rating-stars-disabled")).jRating({ rateMax : 5, isDisabled : true