mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #415 - admin pages
This commit is contained in:
parent
a48b9102d8
commit
08d553461a
2 changed files with 2 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
<title>Dashboard</title>
|
<title>Dashboard</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="dashboardPage" data-role="page" class="page type-interior">
|
<div id="dashboardPage" data-role="page" class="page type-interior adminPage">
|
||||||
|
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
<div class="content-primary">
|
<div class="content-primary">
|
||||||
|
|
|
@ -1124,7 +1124,6 @@ Dashboard.jQueryMobileInit();
|
||||||
$(document).on('pagebeforeshow', ".page", function () {
|
$(document).on('pagebeforeshow', ".page", function () {
|
||||||
|
|
||||||
var page = $(this);
|
var page = $(this);
|
||||||
var pageId = this.id;
|
|
||||||
|
|
||||||
var userId = Dashboard.getCurrentUserId();
|
var userId = Dashboard.getCurrentUserId();
|
||||||
ApiClient.currentUserId(userId);
|
ApiClient.currentUserId(userId);
|
||||||
|
@ -1148,7 +1147,7 @@ $(document).on('pagebeforeshow', ".page", function () {
|
||||||
|
|
||||||
if (user.Configuration.IsAdministrator) {
|
if (user.Configuration.IsAdministrator) {
|
||||||
Dashboard.ensureToolsMenu(page);
|
Dashboard.ensureToolsMenu(page);
|
||||||
} else if (pageId == "dashboardPage") {
|
} else if (page.hasClass('adminPage')) {
|
||||||
window.location.replace("index.html");
|
window.location.replace("index.html");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue