1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

begin detail page consolidation

This commit is contained in:
Luke Pulverenti 2013-04-10 09:53:44 -04:00
parent a65280a36c
commit 86603de5f2
6 changed files with 458 additions and 447 deletions

View file

@ -141,7 +141,7 @@
}
if (item.CommunityRating) {
$('#itemCommunityRating', page).html(BoxsetPage.getStarRating(item)).show().attr('title', item.CommunityRating);
$('#itemCommunityRating', page).html(LibraryBrowser.getStarRatingHtml(item)).show().attr('title', item.CommunityRating);
} else {
$('#itemCommunityRating', page).hide();
}
@ -231,25 +231,6 @@
}
},
getStarRating: function (item) {
var rating = item.CommunityRating;
var html = "";
for (var i = 1; i <= 10; i++) {
if (rating < i - 1) {
html += "<div class='starRating emptyStarRating'></div>";
}
else if (rating < i) {
html += "<div class='starRating halfStarRating'></div>";
}
else {
html += "<div class='starRating'></div>";
}
}
return html;
},
renderFav: function (item) {
var html = '';
var page = $.mobile.activePage;