summaryrefslogtreecommitdiffstats
path: root/install/ui/associate.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-05-13 20:05:35 -0500
committerAdam Young <ayoung@redhat.com>2011-05-16 13:18:51 -0400
commitf9a8d772e35982bed1c39b286b3120b9b5f64c0c (patch)
tree690ed76cd4d8185a6616e0d80ced9df67ef86a88 /install/ui/associate.js
parent6c66d376559b9265e98788887fbf0f7f5ea3ea6b (diff)
downloadfreeipa-f9a8d772e35982bed1c39b286b3120b9b5f64c0c.tar.gz
freeipa-f9a8d772e35982bed1c39b286b3120b9b5f64c0c.tar.xz
freeipa-f9a8d772e35982bed1c39b286b3120b9b5f64c0c.zip
Customizable facet groups.
The IPA.entity has been modified to support customizable facet groups. The default list of facet groups is defined in IPA.entity_header and can be overriden in the entity definition. Ticket #1219
Diffstat (limited to 'install/ui/associate.js')
-rw-r--r--install/ui/associate.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/install/ui/associate.js b/install/ui/associate.js
index 15fdfbd72..679e00700 100644
--- a/install/ui/associate.js
+++ b/install/ui/associate.js
@@ -664,14 +664,12 @@ IPA.association_facet = function (spec) {
var that = IPA.facet(spec);
- var index = that.name.indexOf('_');
- that.attribute_member = spec.attribute_member || that.name.substring(0, index);
- that.other_entity = spec.other_entity || that.name.substring(index+1);
-
- that.facet_group = spec.facet_group ||
- IPA.fetch_facet_group(that.entity_name,that.attribute_member);
+ that.attribute_member = spec.attribute_member;
+ that.other_entity = spec.other_entity;
+ that.facet_group = spec.facet_group;
that.label = that.label ? that.label : (IPA.metadata.objects[that.other_entity] ? IPA.metadata.objects[that.other_entity].label : that.other_entity);
+ that.read_only = spec.read_only;
that.associator = spec.associator || IPA.bulk_associator;
that.add_method = spec.add_method || 'add_member';
@@ -683,7 +681,6 @@ IPA.association_facet = function (spec) {
that.adder_columns = [];
that.adder_columns_by_name = {};
-
that.get_column = function(name) {
return that.columns_by_name[name];
};