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

Add autofocus on page load

This commit is contained in:
Dmitry Lyzo 2019-11-14 20:30:59 +03:00
parent e588edbcca
commit 472d391641
4 changed files with 29 additions and 0 deletions

View file

@ -102,6 +102,10 @@ define(["cardBuilder", "imageLoader", "libraryBrowser", "loading", "events", "em
renderChannels(context, result);
loading.hide();
isLoading = false;
require(["autoFocuser"], function (autoFocuser) {
autoFocuser.autoFocus(view);
});
});
}

View file

@ -49,6 +49,10 @@ define(["layoutManager", "userSettings", "inputManager", "loading", "globalize",
showAirEndTime: true
});
loading.hide();
require(["autoFocuser"], function (autoFocuser) {
autoFocuser.autoFocus(page);
});
});
}