mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
redirect to item page when only one new item
This commit is contained in:
parent
700e345aea
commit
91fcb69ea9
1 changed files with 5 additions and 5 deletions
|
@ -334,11 +334,11 @@
|
|||
var item = response1[0];
|
||||
var latestItems = response2[0];
|
||||
|
||||
//if (latestItems.length == 1) {
|
||||
// var first = latestItems[0];
|
||||
// Dashboard.navigate(LibraryBrowser.getHref(first));
|
||||
// return;
|
||||
//}
|
||||
if (latestItems.length == 1) {
|
||||
var first = latestItems[0];
|
||||
Dashboard.navigate(LibraryBrowser.getHref(first));
|
||||
return;
|
||||
}
|
||||
|
||||
var html = '<div data-role="popup" class="groupingMenu" data-theme="a">';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue