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

display ibn item counts

This commit is contained in:
Luke Pulverenti 2013-04-17 02:03:47 -04:00
parent cf5a7622d8
commit 8991f9ea45
2 changed files with 13 additions and 5 deletions

View file

@ -64,31 +64,31 @@
$.getJSON(url).done(function (result) {
var html = '<fieldset data-role="controlgroup" data-type="horizontal">';
var html = '<fieldset data-role="controlgroup" data-type="horizontal" class="libraryTabs">';
html += '<legend></legend>';
if (result.MovieCount) {
html += '<input type="radio" name="ibnItems" id="radioMovies" value="on">';
html += '<input type="radio" name="ibnItems" id="radioMovies" value="on" data-mini="true">';
html += '<label for="radioMovies">Movies (' + result.MovieCount + ')</label>';
}
if (result.SeriesCount) {
html += '<input type="radio" name="ibnItems" id="radioShows" value="on">';
html += '<input type="radio" name="ibnItems" id="radioShows" value="on" data-mini="true">';
html += '<label for="radioShows">TV Shows (' + result.SeriesCount + ')</label>';
}
if (result.EpisodeGuestStarCount) {
html += '<input type="radio" name="ibnItems" id="radioGuestStar" value="on">';
html += '<input type="radio" name="ibnItems" id="radioGuestStar" value="on" data-mini="true">';
html += '<label for="radioGuestStar">Guest Starred (' + result.EpisodeGuestStarCount + ')</label>';
}
if (result.GameCount) {
html += '<input type="radio" name="ibnItems" id="radioGames" value="on">';
html += '<input type="radio" name="ibnItems" id="radioGames" value="on" data-mini="true">';
html += '<label for="radioGames">Games (' + result.SeriesCount + ')</label>';
}