mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixed page title on collection screens
This commit is contained in:
parent
e6da08f559
commit
cba380b0e5
4 changed files with 20 additions and 81 deletions
|
@ -62,8 +62,17 @@
|
|||
|
||||
ApiClient.getItem(userId, query.ParentId).done(function (item) {
|
||||
|
||||
$('#itemName', page).html(item.Name);
|
||||
var name = item.Name;
|
||||
|
||||
if (item.IndexNumber != null) {
|
||||
name = item.IndexNumber + " - " + name;
|
||||
}
|
||||
if (item.ParentIndexNumber != null) {
|
||||
name = item.ParentIndexNumber + "." + name;
|
||||
}
|
||||
|
||||
$('#itemName', page).html(name);
|
||||
Dashboard.setPageTitle(name);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue