mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
improve theme song methods
This commit is contained in:
parent
38fa3ccfe4
commit
9ffcf2bba9
1 changed files with 5 additions and 5 deletions
|
@ -201,8 +201,8 @@
|
|||
|
||||
$('#themeSongsCollapsible', page).hide();
|
||||
|
||||
ApiClient.getThemeSongs(Dashboard.getCurrentUserId(), item.Id).done(function(songs) {
|
||||
renderThemeSongs(page, item, songs);
|
||||
ApiClient.getThemeSongs(Dashboard.getCurrentUserId(), item.Id).done(function (result) {
|
||||
renderThemeSongs(page, item, result);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -279,13 +279,13 @@
|
|||
$('#itemRatings', page).html(LibraryBrowser.getUserDataIconsHtml(item));
|
||||
}
|
||||
|
||||
function renderThemeSongs(page, item, songs) {
|
||||
function renderThemeSongs(page, item, result) {
|
||||
|
||||
if (songs.length) {
|
||||
if (result.Items.length) {
|
||||
|
||||
$('#themeSongsCollapsible', page).show();
|
||||
|
||||
$('#themeSongsContent', page).html(LibraryBrowser.getSongTableHtml(songs, {})).trigger('create');
|
||||
$('#themeSongsContent', page).html(LibraryBrowser.getSongTableHtml(result.Items, {})).trigger('create');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue