mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix events
This commit is contained in:
parent
7743007ece
commit
39965a9b6b
6 changed files with 11 additions and 26 deletions
|
@ -639,15 +639,9 @@
|
|||
return;
|
||||
}
|
||||
|
||||
var buttonParents = $(target).parents('a:not(.card,.cardContent),button:not(.card,.cardContent)');
|
||||
if (buttonParents.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
ApiClient.getJSON(ApiClient.getUrl('Users/' + userId + '/Items/Latest', options)).then(function (items) {
|
||||
|
||||
if (items.length == 1) {
|
||||
|
||||
Dashboard.navigate(LibraryBrowser.getHref(items[0], context));
|
||||
return;
|
||||
}
|
||||
|
@ -656,10 +650,11 @@
|
|||
if (context) {
|
||||
url += '&context=' + context;
|
||||
}
|
||||
Dashboard.navigate(url);
|
||||
|
||||
Dashboard.navigate(url);
|
||||
});
|
||||
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue