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
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue