summaryrefslogtreecommitdiffstats
path: root/install/ui/webui.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-03-08 14:36:59 -0600
committerAdam Young <ayoung@redhat.com>2011-03-08 17:05:01 -0500
commited5cffd026a6528ea47802d16417139dd2734980 (patch)
treed8ee085ba5cab222b882e5dddd91f97aed2ae578 /install/ui/webui.js
parent1c741e62780e966cc0d1efc6541bd19e2c9e4e86 (diff)
downloadfreeipa-ed5cffd026a6528ea47802d16417139dd2734980.tar.gz
freeipa-ed5cffd026a6528ea47802d16417139dd2734980.tar.xz
freeipa-ed5cffd026a6528ea47802d16417139dd2734980.zip
Fixed self service page.
Collaborated with ayoung to fix this problem: https://fedorahosted.org/freeipa/ticket/1070
Diffstat (limited to 'install/ui/webui.js')
-rw-r--r--install/ui/webui.js19
1 files changed, 15 insertions, 4 deletions
diff --git a/install/ui/webui.js b/install/ui/webui.js
index fd33120d8..3223cbf05 100644
--- a/install/ui/webui.js
+++ b/install/ui/webui.js
@@ -149,14 +149,25 @@ $(function() {
if (should_show_all_ui()){
IPA.tab_set = IPA.admin_tab_set();
IPA.nav.create(IPA.tab_set, navigation, 'tabs');
+ IPA.nav.update_tabs();
+
} else {
IPA.tab_set = IPA.self_serv_tab_set();
IPA.nav.create(IPA.tab_set, navigation, 'tabs');
- var state = {'user-pkey':IPA.whoami_pkey ,
- 'user-facet': $.bbq.getState('user-facet') ||
- 'details'};
- $.bbq.pushState(state);
+ var pkey = $.bbq.getState('user-pkey');
+ var facet = $.bbq.getState('user-facet');
+
+ if (pkey && facet) {
+ IPA.nav.update_tabs();
+
+ } else {
+ var state = {
+ 'user-pkey': pkey || IPA.whoami_pkey,
+ 'user-facet': facet || 'details'
+ };
+ $.bbq.pushState(state);
+ }
}