This commit is contained in:
Luke Pulverenti 2013-11-09 13:44:43 -05:00
commit d08de5fbe0
3 changed files with 2 additions and 6 deletions

View File

@ -1384,7 +1384,7 @@
var rating = item.CommunityRating / 2; var rating = item.CommunityRating / 2;
for (var i = 1; i <= 5; i++) { for (var i = 1; i <= 5; i++) {
if (rating < i - 1) { if (rating <= i - 1) {
html += "<div class='starRating emptyStarRating' title='" + item.CommunityRating + "'></div>"; html += "<div class='starRating emptyStarRating' title='" + item.CommunityRating + "'></div>";
} }
else if (rating < i) { else if (rating < i) {

View File

@ -119,10 +119,6 @@
html += " " + plugin.totalRatings + " Reviews"; html += " " + plugin.totalRatings + " Reviews";
html += "</span>"; html += "</span>";
if (plugin.isPremium && plugin.isRegistered) {
html += "<span title='You are registered for this feature' style='cursor: default'> &reg;</span>";
}
html += "</div>"; html += "</div>";
html += "</div>"; html += "</div>";

View File

@ -1152,7 +1152,7 @@ var Dashboard = {
var title = noLinks ? rating + " stars" : "Rate " + i + (i > 1 ? " stars" : " star"); var title = noLinks ? rating + " stars" : "Rate " + i + (i > 1 ? " stars" : " star");
html += noLinks ? "" : "<a href='#' data-id=" + id + " data-name='" + name + "' data-rating=" + i + " onclick='Dashboard.ratePackage(this);' >"; html += noLinks ? "" : "<a href='#' data-id=" + id + " data-name='" + name + "' data-rating=" + i + " onclick='Dashboard.ratePackage(this);' >";
if (rating < i - 1 || rating == 0) { if (rating <= i - 1) {
html += "<div class='storeStarRating emptyStarRating' title='" + title + "'></div>"; html += "<div class='storeStarRating emptyStarRating' title='" + title + "'></div>";
} else if (rating < i) { } else if (rating < i) {
html += "<div class='storeStarRating halfStarRating' title='" + title + "'></div>"; html += "<div class='storeStarRating halfStarRating' title='" + title + "'></div>";