summaryrefslogtreecommitdiffstats
path: root/install/ui/webui.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-04-28 17:38:21 -0500
committerEndi S. Dewata <edewata@redhat.com>2011-05-05 12:14:34 -0500
commit5eb9f088f2c5c902a55aefdf9dd8b2a95e060837 (patch)
tree57e5eb988fb2056d02df4ab07c857622dd03f0b8 /install/ui/webui.js
parent238da3dffd99f3ea91318eb2dd0fe77860aff345 (diff)
downloadfreeipa-5eb9f088f2c5c902a55aefdf9dd8b2a95e060837.tar.gz
freeipa-5eb9f088f2c5c902a55aefdf9dd8b2a95e060837.tar.xz
freeipa-5eb9f088f2c5c902a55aefdf9dd8b2a95e060837.zip
Use entity names for tab state.
Previously the tab state is represented using numeric index such as navigation=0&identity=1 which is not very user friendly. Now the code has been modified to use entity names such as navigation=identity&identity=group.
Diffstat (limited to 'install/ui/webui.js')
-rw-r--r--install/ui/webui.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/install/ui/webui.js b/install/ui/webui.js
index 84a4f3331..eac07db23 100644
--- a/install/ui/webui.js
+++ b/install/ui/webui.js
@@ -85,8 +85,8 @@ IPA.self_serv_navigation = function(spec) {
var that = IPA.navigation(spec);
that.update = function() {
- var pkey = $.bbq.getState('user-pkey');
- var facet = $.bbq.getState('user-facet');
+ var pkey = that.get_state('user-pkey');
+ var facet = that.get_state('user-facet');
if (pkey && facet) {
that.navigation_update();
@@ -96,7 +96,7 @@ IPA.self_serv_navigation = function(spec) {
'user-pkey': pkey || IPA.whoami_pkey,
'user-facet': facet || 'details'
};
- $.bbq.pushState(state);
+ that.push_state(state);
}
};
@@ -111,7 +111,6 @@ $(function() {
IPA.nav.update();
}
-
function create_navigation() {
var whoami = IPA.whoami;
var factory;