From 14b5d4fe8a44de1254b3bced9451349cb8f17218 Mon Sep 17 00:00:00 2001 From: Techywarrior Date: Tue, 2 Apr 2013 16:42:17 -0700 Subject: [PATCH] extra text, user profile sidebar highlight when comming from that section to media library --- dashboard-ui/library.html | 3 ++- dashboard-ui/scripts/medialibrarypage.js | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/library.html b/dashboard-ui/library.html index 9b52ae4816..cb2b9e3da4 100644 --- a/dashboard-ui/library.html +++ b/dashboard-ui/library.html @@ -1,5 +1,5 @@  - + @@ -21,6 +21,7 @@

Below are your media collections. Expand a collection to add or remove media locations assigned to it.

+

This is the default media library that will be shared with all users unless they setup their own.

diff --git a/dashboard-ui/scripts/medialibrarypage.js b/dashboard-ui/scripts/medialibrarypage.js index 15a0a529d4..549753c5ff 100644 --- a/dashboard-ui/scripts/medialibrarypage.js +++ b/dashboard-ui/scripts/medialibrarypage.js @@ -20,6 +20,13 @@ $('#userProfileNavigation', page).show(); ApiClient.getUser(userId).done(function (user) { + //I don't really like this hack - Craig + $("div.sidebarLinks a").removeClass("selectedSidebarLink"); + $("div.sidebarLinks a").each(function(){ + if ($(this).attr("href")=="userprofiles.html") { + $(this).addClass("selectedSidebarLink"); + } + }); Dashboard.setPageTitle(user.Name);