mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 02:48:19 -07:00
Merge pull request #45 from cvium/fix_data_backbutton
Fix data-backbutton logic
This commit is contained in:
commit
16e46d065c
@ -1,4 +1,4 @@
|
||||
<div id="dashboardPage" data-role="page" class="page type-interior dashboardHomePage fullWidthContent">
|
||||
<div id="dashboardPage" data-role="page" class="page type-interior dashboardHomePage fullWidthContent" data-backbutton="false">
|
||||
|
||||
<div class="content-primary">
|
||||
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user