mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added default images for audio and person
This commit is contained in:
parent
7348edef90
commit
c3bae9c9f5
5 changed files with 15 additions and 9 deletions
BIN
dashboard-ui/css/images/items/detail/person.png
Normal file
BIN
dashboard-ui/css/images/items/detail/person.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 18 KiB |
BIN
dashboard-ui/css/images/items/list/audio.png
Normal file
BIN
dashboard-ui/css/images/items/list/audio.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
BIN
dashboard-ui/css/images/items/list/person.png
Normal file
BIN
dashboard-ui/css/images/items/list/person.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.6 KiB |
|
@ -55,7 +55,7 @@ var Dashboard = {
|
||||||
}
|
}
|
||||||
|
|
||||||
var header = $('.header', $.mobile.activePage);
|
var header = $('.header', $.mobile.activePage);
|
||||||
|
|
||||||
if (header.length) {
|
if (header.length) {
|
||||||
// Re-render the header
|
// Re-render the header
|
||||||
header.remove();
|
header.remove();
|
||||||
|
@ -394,7 +394,7 @@ var Dashboard = {
|
||||||
reloadPageWhenServerAvailable: function (retryCount) {
|
reloadPageWhenServerAvailable: function (retryCount) {
|
||||||
|
|
||||||
ApiClient.getSystemInfo().done(function (info) {
|
ApiClient.getSystemInfo().done(function (info) {
|
||||||
|
|
||||||
// If this is back to false, the restart completed
|
// If this is back to false, the restart completed
|
||||||
if (!info.HasPendingRestart) {
|
if (!info.HasPendingRestart) {
|
||||||
Dashboard.reloadPage();
|
Dashboard.reloadPage();
|
||||||
|
@ -402,11 +402,11 @@ var Dashboard = {
|
||||||
Dashboard.retryReload(retryCount);
|
Dashboard.retryReload(retryCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
}).fail(function() {
|
}).fail(function () {
|
||||||
Dashboard.retryReload(retryCount);
|
Dashboard.retryReload(retryCount);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
retryReload: function (retryCount) {
|
retryReload: function (retryCount) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|
||||||
|
@ -459,7 +459,13 @@ var Dashboard = {
|
||||||
width: 352,
|
width: 352,
|
||||||
tag: item.BackdropImageTags[0]
|
tag: item.BackdropImageTags[0]
|
||||||
}) + "' />";
|
}) + "' />";
|
||||||
} else {
|
}
|
||||||
|
else if (item.MediaType == "Audio" || item.Type == "MusicAlbum" || item.Type == "MusicArtist") {
|
||||||
|
|
||||||
|
html += "<img style='background:" + Dashboard.getRandomMetroColor() + ";' src='css/images/items/list/audio.png' />";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
|
||||||
html += "<img style='background:" + Dashboard.getRandomMetroColor() + ";' src='css/images/items/list/collection.png' />";
|
html += "<img style='background:" + Dashboard.getRandomMetroColor() + ";' src='css/images/items/list/collection.png' />";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -859,9 +865,9 @@ var Dashboard = {
|
||||||
|
|
||||||
$(ApiClient).on("websocketmessage", Dashboard.onWebSocketMessageReceived);
|
$(ApiClient).on("websocketmessage", Dashboard.onWebSocketMessageReceived);
|
||||||
},
|
},
|
||||||
|
|
||||||
onWebSocketMessageReceived: function (msg) {
|
onWebSocketMessageReceived: function (msg) {
|
||||||
|
|
||||||
if (msg.MessageType === "LibraryChanged") {
|
if (msg.MessageType === "LibraryChanged") {
|
||||||
Dashboard.processLibraryUpdateNotification(msg.Data);
|
Dashboard.processLibraryUpdateNotification(msg.Data);
|
||||||
}
|
}
|
||||||
|
@ -1054,7 +1060,7 @@ var Dashboard = {
|
||||||
tag: item.PrimaryImageTag,
|
tag: item.PrimaryImageTag,
|
||||||
type: "Primary"
|
type: "Primary"
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!item.Id || data.icon.indexOf("undefined") != -1) {
|
if (!item.Id || data.icon.indexOf("undefined") != -1) {
|
||||||
alert("bad image url: " + JSON.stringify(item));
|
alert("bad image url: " + JSON.stringify(item));
|
||||||
console.log("bad image url: " + JSON.stringify(item));
|
console.log("bad image url: " + JSON.stringify(item));
|
||||||
|
@ -1150,7 +1156,7 @@ $(document).on('pagebeforeshow', ".page", function () {
|
||||||
}).on('pageinit', ".page", function () {
|
}).on('pageinit', ".page", function () {
|
||||||
|
|
||||||
var page = $(this);
|
var page = $(this);
|
||||||
|
|
||||||
var userId = Dashboard.getCurrentUserId();
|
var userId = Dashboard.getCurrentUserId();
|
||||||
ApiClient.currentUserId(userId);
|
ApiClient.currentUserId(userId);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue