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

Merge pull request #45 from cvium/fix_data_backbutton

Fix data-backbutton logic
This commit is contained in:
Andrew Rabert 2019-01-20 20:34:13 -05:00 committed by GitHub
commit 16e46d065c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View file

@ -735,14 +735,12 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
}
function updateBackButton(page) {
var isDashboardPage = page.classList.contains("type-interior");
if (!headerBackButton) {
headerBackButton = document.querySelector(".headerBackButton");
}
if (headerBackButton) {
if (page.getAttribute("data-backbutton") && appRouter.canGoBack()) {
if ("false" !== page.getAttribute("data-backbutton") && appRouter.canGoBack()) {
headerBackButton.classList.remove("hide");
} else {
headerBackButton.classList.add("hide");