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

fix events

This commit is contained in:
Luke Pulverenti 2015-11-29 13:16:42 -05:00
parent 7743007ece
commit 39965a9b6b
6 changed files with 11 additions and 26 deletions

View file

@ -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;
}