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

fix missing semi-colon

This commit is contained in:
Luke Pulverenti 2013-04-03 08:03:13 -04:00
parent d3951c232a
commit 9ffd7d819a

View file

@ -40,20 +40,17 @@
tag: item.ImageTags.Primary tag: item.ImageTags.Primary
}) + "' />"; }) + "' />";
} } else if (item.BackdropImageTags && item.BackdropImageTags.length) {
else if (item.BackdropImageTags && item.BackdropImageTags.length) {
html += "<img src='" + ApiClient.getImageUrl(item.Id, { html += "<img src='" + ApiClient.getImageUrl(item.Id, {
type: "Backdrop", type: "Backdrop",
height: 198, height: 198,
width: 352, width: 352,
tag: item.BackdropImageTags[0] tag: item.BackdropImageTags[0]
}) + "' />"; }) + "' />";
} } else if (item.MediaType == "Audio" || item.Type == "MusicAlbum" || item.Type == "MusicArtist") {
else if (item.MediaType == "Audio" || item.Type == "MusicAlbum" || item.Type == "MusicArtist") {
html += "<img style='background:" + LibraryBrowser.getMetroColor(item.Id) + ";' src='css/images/items/list/audio.png' />"; html += "<img style='background:" + LibraryBrowser.getMetroColor(item.Id) + ";' src='css/images/items/list/audio.png' />";
} } else {
else {
html += "<img style='background:" + LibraryBrowser.getMetroColor(item.Id) + ";' src='css/images/items/list/collection.png' />"; html += "<img style='background:" + LibraryBrowser.getMetroColor(item.Id) + ";' src='css/images/items/list/collection.png' />";
} }
@ -110,16 +107,14 @@
tag: item.ImageTags.Primary tag: item.ImageTags.Primary
}) + "' />"; }) + "' />";
} } else if (item.BackdropImageTags && item.BackdropImageTags.length) {
else if (item.BackdropImageTags && item.BackdropImageTags.length) {
html += "<img src='" + ApiClient.getImageUrl(item.Id, { html += "<img src='" + ApiClient.getImageUrl(item.Id, {
type: "Backdrop", type: "Backdrop",
height: 198, height: 198,
width: 352, width: 352,
tag: item.BackdropImageTags[0] tag: item.BackdropImageTags[0]
}) + "' />"; }) + "' />";
} } else {
else {
html += "<img style='background:" + LibraryBrowser.getMetroColor(item.Id) + ";' src='css/images/items/list/collection.png' />"; html += "<img style='background:" + LibraryBrowser.getMetroColor(item.Id) + ";' src='css/images/items/list/collection.png' />";
} }
@ -137,7 +132,7 @@
html += item.IndexNumber + " -"; html += item.IndexNumber + " -";
} }
html += " "+item.Name; html += " " + item.Name;
html += "</div>"; html += "</div>";
} }
@ -189,13 +184,13 @@
getMetroColor: function (str) { getMetroColor: function (str) {
if (str) { if (str) {
var char = str.substr(0,1).charCodeAt(); var char = str.substr(0, 1).charCodeAt();
var index = String(char).substr(char.length,1); var index = String(char).substr(char.length, 1);
return LibraryBrowser.metroColors[index]; return LibraryBrowser.metroColors[index];
}else { } else {
return LibraryBrowser.getRandomMetroColor(); return LibraryBrowser.getRandomMetroColor();
} }
} }
} };