From b7700ea815222b4de80741ad77b31707051300bd Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Wed, 16 Feb 2011 14:26:35 +0100 Subject: 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 --- install/ui/webui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'install/ui/webui.js') diff --git a/install/ui/webui.js b/install/ui/webui.js index 7d14f593..fd33120d 100644 --- a/install/ui/webui.js +++ b/install/ui/webui.js @@ -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') || -- cgit