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

added new image params & GameSystem constants

This commit is contained in:
Luke Pulverenti 2013-10-02 11:32:11 -04:00
parent b368226a95
commit 792382a113
4 changed files with 19 additions and 5 deletions

View file

@ -48,6 +48,8 @@
$(".autoNumeric").autoNumeric('init');
setPeopleHeader(page, item);
if (ApiClient.isWebSocketOpen()) {
ApiClient.sendWebSocketMessage("Context", [item.Type, item.Id, item.Name, context].join('|'));
}
@ -56,6 +58,16 @@
});
}
function setPeopleHeader(page, item) {
if (item.Type == "Audio" || item.Type == "MusicAlbum" || item.MediaType == "Book" || item.MediaType == "Photo") {
$('#peopleHeader', page).html('People');
} else {
$('#peopleHeader', page).html('Cast & Crew');
}
}
function getContext(item) {
// should return either movies, tv, music or games
@ -260,9 +272,9 @@
$('.itemPath', page).hide();
}
}
function getArtistLinksHtml(artists) {
var html = [];
for (var i = 0, length = artists.length; i < length; i++) {
@ -274,7 +286,7 @@
}
html = html.join(' / ');
if (artists.length == 1) {
return 'Artist:&nbsp;&nbsp;' + html;
}