mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
scoping functions
converting function of the form ipa_<name> to IPA.<name> to remove them from the global namespace. https://fedorahosted.org/freeipa/ticket/212
This commit is contained in:
committed by
Endi S. Dewata
parent
00b3984e5a
commit
680148ed03
@@ -22,11 +22,11 @@
|
||||
|
||||
|
||||
IPA.add_entity( function() {
|
||||
var that = ipa_entity({
|
||||
var that = IPA.entity({
|
||||
'name': 'hostgroup'
|
||||
});
|
||||
that.init = function() {
|
||||
var search_facet = ipa_search_facet({
|
||||
var search_facet = IPA.search_facet({
|
||||
name: 'search',
|
||||
label: 'Search',
|
||||
entity_name: that.name
|
||||
@@ -36,23 +36,23 @@ IPA.add_entity( function() {
|
||||
that.add_facet(search_facet);
|
||||
|
||||
that.add_facet(function() {
|
||||
var that = ipa_details_facet({name:'details',label:'Details'});
|
||||
var that = IPA.details_facet({name:'details',label:'Details'});
|
||||
that.add_section(
|
||||
ipa_stanza({name:'identity', label:'Hostgroup Details'}).
|
||||
IPA.stanza({name:'identity', label:'Hostgroup Details'}).
|
||||
input({name:'cn'}).
|
||||
input({name: 'description'}));
|
||||
return that;
|
||||
}());
|
||||
|
||||
|
||||
var dialog = ipa_add_dialog({
|
||||
var dialog = IPA.add_dialog({
|
||||
name: 'add',
|
||||
title: 'Add Hostgroup'
|
||||
});
|
||||
that.add_dialog(dialog);
|
||||
|
||||
dialog.add_field(ipa_text_widget({name: 'cn', undo: false}));
|
||||
dialog.add_field(ipa_text_widget({name: 'description', undo: false}));
|
||||
dialog.add_field(IPA.text_widget({name: 'cn', undo: false}));
|
||||
dialog.add_field(IPA.text_widget({name: 'description', undo: false}));
|
||||
dialog.init();
|
||||
|
||||
that.create_association_facets();
|
||||
|
||||
Reference in New Issue
Block a user