summaryrefslogtreecommitdiffstats
path: root/install/ui/host.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-08-19 10:20:40 -0500
committerEndi S. Dewata <edewata@redhat.com>2011-08-23 16:11:42 +0000
commitfca0f4dd6576f82376a7d98cfc95641c75cd68cb (patch)
tree51aee3c15a7e84219031b2980123569af6d81ff7 /install/ui/host.js
parenta797f907ee43bb73fb649f200a27183c44a885a0 (diff)
downloadfreeipa-fca0f4dd6576f82376a7d98cfc95641c75cd68cb.tar.gz
freeipa-fca0f4dd6576f82376a7d98cfc95641c75cd68cb.tar.xz
freeipa-fca0f4dd6576f82376a7d98cfc95641c75cd68cb.zip
Updated add and delete association dialog titles.
The association table widget and facet have been modified to accept titles for the add and delete dialogs. The table and facet definitions have been modified to specify the appropriate titles. Some unused code have been removed. Ticket #1629
Diffstat (limited to 'install/ui/host.js')
-rw-r--r--install/ui/host.js23
1 files changed, 3 insertions, 20 deletions
diff --git a/install/ui/host.js b/install/ui/host.js
index 05484a030..5a786b016 100644
--- a/install/ui/host.js
+++ b/install/ui/host.js
@@ -73,8 +73,9 @@ IPA.entity_factories.host = function () {
]
}]}).
association_facet({
- factory: IPA.host_managedby_host_facet,
- name: 'managedby_host'
+ name: 'managedby_host',
+ add_method: 'add_managedby',
+ remove_method: 'remove_managedby'
}).
association_facet({
name: 'memberof_hostgroup',
@@ -622,21 +623,3 @@ IPA.host_certificate_status_widget = function (spec) {
return that;
};
-
-IPA.host_managedby_host_facet = function (spec) {
-
- spec = spec || {};
-
- var that = IPA.association_facet(spec);
-
- that.add_method = 'add_managedby';
- that.remove_method = 'remove_managedby';
-
- that.create_adder_column({
- name: 'fqdn',
- primary_key: true,
- width: '200px'
- });
-
- return that;
-};