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

display songs in a table

This commit is contained in:
Luke Pulverenti 2013-04-22 16:06:43 -04:00
parent 7603892906
commit 3798443c4c
4 changed files with 157 additions and 57 deletions

View file

@ -205,12 +205,19 @@
}).done(function (result) {
var html = LibraryBrowser.getPosterDetailViewHtml({
items: result.Items,
useAverageAspectRatio: true
});
if (item.Type == "MusicAlbum") {
$('#childrenContent', page).html(html);
$('#childrenContent', page).html(LibraryBrowser.getSongTableHtml(result.Items)).trigger('create');
} else {
var html = LibraryBrowser.getPosterDetailViewHtml({
items: result.Items,
useAverageAspectRatio: true
});
$('#childrenContent', page).html(html);
}
});
if (item.Type == "Season") {
@ -223,7 +230,7 @@
$('#childrenTitle', page).html('Movies (' + item.ChildCount + ')');
}
else if (item.Type == "MusicAlbum") {
$('#childrenTitle', page).html('Songs (' + item.ChildCount + ')');
$('#childrenTitle', page).html('Tracks (' + item.ChildCount + ')');
}
else {
$('#childrenTitle', page).html('Items (' + item.ChildCount + ')');