mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
@@ -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') ||
|
||||
|
||||
Reference in New Issue
Block a user