diff options
author | Adam Young <ayoung@redhat.com> | 2010-10-15 14:06:23 -0400 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-10-20 10:54:51 -0400 |
commit | 4f7f40004361d9a63f625e5e70d0969c41d43958 (patch) | |
tree | 59314d10c4ae371c500491e9c740570cb08ad33b /install/static/webui.js | |
parent | 2c5f3cfd60575d7c72e6be8124b34c88b90d9fb7 (diff) | |
download | freeipa-4f7f40004361d9a63f625e5e70d0969c41d43958.tar.gz freeipa-4f7f40004361d9a63f625e5e70d0969c41d43958.tar.xz freeipa-4f7f40004361d9a63f625e5e70d0969c41d43958.zip |
password dialog
added a modal dialog for resetting the password.
Made the whoami varaible global, as anything dependant on the principal will require access to it.
Diffstat (limited to 'install/static/webui.js')
-rw-r--r-- | install/static/webui.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/install/static/webui.js b/install/static/webui.js index a53824bd..60ccc25e 100644 --- a/install/static/webui.js +++ b/install/static/webui.js @@ -52,19 +52,22 @@ var self_serv_tab_set = { name:'identity', label:'IDENTITY', children: [ {name:'user', label:'Users', setup:ipa_entity_setup}]}]; + +var ipa_whoami_pkey; + + /* main (document onready event handler) */ $(function() { - var whoami_pkey; function whoami_on_win(data, text_status, xhr) { $(window).bind('hashchange', window_hashchange); if (!data.error){ var whoami = data.result.result[0]; - whoami_pkey=whoami.uid[0]; + ipa_whoami_pkey=whoami.uid[0]; $('#loggedinas').find('strong').text(whoami.krbprincipalname[0]); $('#loggedinas a').fragment( - {'user-facet':'details', 'user-pkey':whoami_pkey},2); + {'user-facet':'details', 'user-pkey':ipa_whoami_pkey},2); var navigation = $('#navigation'); @@ -75,7 +78,7 @@ $(function() { }else{ nav_create(self_serv_tab_set, navigation, 'tabs'); - var state = {'user-pkey':whoami_pkey , + var state = {'user-pkey':ipa_whoami_pkey , 'user-facet': jQuery.bbq.getState('user-facet') || 'details'}; $.bbq.pushState(state); |