1
0
Fork 0
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:
Luke Pulverenti 2013-08-27 16:04:58 -04:00
parent a48b9102d8
commit 08d553461a
2 changed files with 2 additions and 3 deletions

View file

@ -4,7 +4,7 @@
<title>Dashboard</title>
</head>
<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 class="content-primary">

View file

@ -1124,7 +1124,6 @@ Dashboard.jQueryMobileInit();
$(document).on('pagebeforeshow', ".page", function () {
var page = $(this);
var pageId = this.id;
var userId = Dashboard.getCurrentUserId();
ApiClient.currentUserId(userId);
@ -1148,7 +1147,7 @@ $(document).on('pagebeforeshow', ".page", function () {
if (user.Configuration.IsAdministrator) {
Dashboard.ensureToolsMenu(page);
} else if (pageId == "dashboardPage") {
} else if (page.hasClass('adminPage')) {
window.location.replace("index.html");
}