diff options
author | Martin Kosek <mkosek@redhat.com> | 2011-02-16 14:26:35 +0100 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-02-18 09:49:37 -0500 |
commit | b7700ea815222b4de80741ad77b31707051300bd (patch) | |
tree | 4c92ba518468af34f9587131c8f4de3bb13613e3 /install/ui/sudocmdgroup.js | |
parent | 27532f54687297e5dfa7d66503f22186d7fc3237 (diff) | |
download | freeipa-b7700ea815222b4de80741ad77b31707051300bd.tar.gz freeipa-b7700ea815222b4de80741ad77b31707051300bd.tar.xz freeipa-b7700ea815222b4de80741ad77b31707051300bd.zip |
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
Diffstat (limited to 'install/ui/sudocmdgroup.js')
-rw-r--r-- | install/ui/sudocmdgroup.js | 6 |
1 files changed, 3 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>. */ -/* 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 || {}; |