From 08d553461aba15f94607bd1cbf4f1e5bde2c28d4 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 27 Aug 2013 16:04:58 -0400 Subject: [PATCH] fixes #415 - admin pages --- dashboard-ui/dashboard.html | 2 +- dashboard-ui/scripts/site.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dashboard-ui/dashboard.html b/dashboard-ui/dashboard.html index c0e4182ddd..aa2af57902 100644 --- a/dashboard-ui/dashboard.html +++ b/dashboard-ui/dashboard.html @@ -4,7 +4,7 @@ Dashboard -
+
diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index 9d1d2f679f..08dd705fcd 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -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"); }