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

Merge pull request #563 from dmitrylyzo/focus_pageload

Add autofocus on page load
This commit is contained in:
dkanada 2019-11-28 23:35:51 +09:00 committed by GitHub
commit 59e9be84dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 217 additions and 26 deletions

View file

@ -160,6 +160,10 @@ define(["layoutManager", "playbackManager", "loading", "events", "libraryBrowser
libraryBrowser.saveQueryValues(getSavedQueryKey(), query);
loading.hide();
isLoading = false;
require(["autoFocuser"], function (autoFocuser) {
autoFocuser.autoFocus(tabContent);
});
});
}

View file

@ -144,6 +144,10 @@ define(["layoutManager", "loading", "events", "libraryBrowser", "imageLoader", "
libraryBrowser.saveQueryValues(getSavedQueryKey(page), query);
loading.hide();
isLoading = false;
require(["autoFocuser"], function (autoFocuser) {
autoFocuser.autoFocus(tabContent);
});
});
}

View file

@ -87,6 +87,10 @@ define(["libraryBrowser", "cardBuilder", "apphost", "imageLoader", "loading"], f
imageLoader.lazyChildren(elem);
libraryBrowser.saveQueryValues(getSavedQueryKey(), query);
loading.hide();
require(["autoFocuser"], function (autoFocuser) {
autoFocuser.autoFocus(context);
});
});
}

View file

@ -58,6 +58,10 @@ define(["libraryBrowser", "cardBuilder", "apphost", "imageLoader", "loading"], f
imageLoader.lazyChildren(elem);
libraryBrowser.saveQueryValues(getSavedQueryKey(), query);
loading.hide();
require(["autoFocuser"], function (autoFocuser) {
autoFocuser.autoFocus(context);
});
});
}

View file

@ -59,6 +59,10 @@ define(["browser", "layoutManager", "userSettings", "inputManager", "loading", "
});
imageLoader.lazyChildren(elem);
loading.hide();
require(["autoFocuser"], function (autoFocuser) {
autoFocuser.autoFocus(page);
});
});
}

View file

@ -104,6 +104,10 @@ define(["events", "libraryBrowser", "imageLoader", "listView", "loading", "emby-
libraryBrowser.saveQueryValues(getSavedQueryKey(page), query);
loading.hide();
isLoading = false;
require(["autoFocuser"], function (autoFocuser) {
autoFocuser.autoFocus(page);
});
});
}