mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 02:48:19 -07:00
Fix data-backbutton logic
This commit is contained in:
parent
791d1ea373
commit
47f5cd330f
@ -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">
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div id="editItemMetadataPage" data-role="page" class="page libraryPage metadataEditorPage noSecondaryNavPage" data-title="${MetadataManager}" data-require="scripts/editorsidebar,scripts/edititemmetadata">
|
||||
<div id="editItemMetadataPage" data-role="page" class="page libraryPage metadataEditorPage noSecondaryNavPage" data-title="${MetadataManager}" data-require="scripts/editorsidebar,scripts/edititemmetadata" data-backbutton="false">
|
||||
|
||||
<style>
|
||||
#editItemMetadataPage .editMetadataForm {
|
||||
|
@ -742,14 +742,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