Remove WebUI identifiers from global namespace

Many WebUI identifiers were defined in a global namespace. This is
not a good programming practice and may result in name clashes,
for example with other libraries.

This patch moves these variables to IPA namespace or its
sub-namespaces, when meaningful.

https://fedorahosted.org/freeipa/ticket/212
This commit is contained in:
Martin Kosek
2011-02-16 14:26:35 +01:00
committed by Adam Young
parent 27532f5468
commit b7700ea815
14 changed files with 596 additions and 666 deletions

View File

@@ -118,7 +118,7 @@ $(function() {
/* main loop (hashchange event handler) */
function window_hashchange(evt){
nav_update_tabs();
IPA.nav.update_tabs();
}
@@ -148,10 +148,10 @@ $(function() {
if (should_show_all_ui()){
IPA.tab_set = IPA.admin_tab_set();
nav_create(IPA.tab_set, navigation, 'tabs');
IPA.nav.create(IPA.tab_set, navigation, 'tabs');
} else {
IPA.tab_set = IPA.self_serv_tab_set();
nav_create(IPA.tab_set, navigation, 'tabs');
IPA.nav.create(IPA.tab_set, navigation, 'tabs');
var state = {'user-pkey':IPA.whoami_pkey ,
'user-facet': $.bbq.getState('user-facet') ||