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/sudocmdgroup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'install/ui/sudocmdgroup.js') diff --git a/install/ui/sudocmdgroup.js b/install/ui/sudocmdgroup.js index d99bb61f..8e29aa20 100644 --- a/install/ui/sudocmdgroup.js +++ b/install/ui/sudocmdgroup.js @@ -20,7 +20,7 @@ * along with this program. If not, see . */ -/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */ +/* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js, sudorule.js */ IPA.entity_factories.sudocmdgroup = function () { @@ -35,7 +35,7 @@ IPA.entity_factories.sudocmdgroup = function () { 'label': 'Search' }); - var dialog = IPA.sudocmdgroup_add_dialog({ + var dialog = IPA.sudo.cmdgroup_add_dialog({ 'name': 'add', 'title': 'Add New SUDO Command Group' }); @@ -55,7 +55,7 @@ IPA.entity_factories.sudocmdgroup = function () { }; -IPA.sudocmdgroup_add_dialog = function (spec) { +IPA.sudo.cmdgroup_add_dialog = function (spec) { spec = spec || {}; -- cgit