mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
removed ProcessManager
This commit is contained in:
parent
8830ee7c30
commit
50a6a77dbe
4 changed files with 43 additions and 21 deletions
|
@ -1,6 +1,8 @@
|
|||
(function ($, document) {
|
||||
|
||||
function loadSections(page, userId) {
|
||||
function loadSections(page, user) {
|
||||
|
||||
var userId = user.Id;
|
||||
|
||||
var i, length;
|
||||
var sectionCount = 3;
|
||||
|
@ -21,7 +23,7 @@
|
|||
|
||||
var latestMediElem = $('.section0', page);
|
||||
|
||||
Sections.loadRecentlyAdded(latestMediElem, userId, context).done(function () {
|
||||
Sections.loadRecentlyAdded(latestMediElem, user, context).done(function () {
|
||||
|
||||
$('h1', latestMediElem).addClass('firstListHeader');
|
||||
});
|
||||
|
@ -33,9 +35,9 @@
|
|||
|
||||
var page = this;
|
||||
|
||||
var userId = Dashboard.getCurrentUserId();
|
||||
|
||||
loadSections(page, userId);
|
||||
Dashboard.getCurrentUser().done(function (user) {
|
||||
loadSections(page, user);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue