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

update components

This commit is contained in:
Luke Pulverenti 2016-04-11 10:05:43 -04:00
parent ca13b8cbc2
commit 321c73557d
3 changed files with 41 additions and 13 deletions

View file

@ -5,13 +5,17 @@ define([], function () {
var element = view.querySelector('*[autofocus]');
if (element) {
focus(element);
return element;
} else if (defaultToFirst !== false) {
element = getFocusableElements(view)[0];
if (element) {
focus(element);
return element;
}
}
return null;
}
function focus(element) {