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

added count api methods for studios and genres

This commit is contained in:
Luke Pulverenti 2013-04-17 10:42:25 -04:00
parent 8991f9ea45
commit 4c852cbbdc

View file

@ -86,12 +86,30 @@
html += '<label for="radioGuestStar">Guest Starred (' + result.EpisodeGuestStarCount + ')</label>';
}
if (result.TrailerCount) {
html += '<input type="radio" name="ibnItems" id="radioTrailers" value="on" data-mini="true">';
html += '<label for="radioTrailers">Trailers (' + result.TrailerCount + ')</label>';
}
if (result.GameCount) {
html += '<input type="radio" name="ibnItems" id="radioGames" value="on" data-mini="true">';
html += '<label for="radioGames">Games (' + result.SeriesCount + ')</label>';
}
if (result.AlbumCount) {
html += '<input type="radio" name="ibnItems" id="radioAlbums" value="on" data-mini="true">';
html += '<label for="radioAlbums">Albums (' + result.AlbumCount + ')</label>';
}
if (result.SongCount) {
html += '<input type="radio" name="ibnItems" id="radioSongs" value="on" data-mini="true">';
html += '<label for="radioSongs">Songs (' + result.SongCount + ')</label>';
}
html += '</fieldset>';
var elem = $('#items', page).html(html).trigger('create');