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
This commit is contained in:
Endi S. Dewata
2011-08-19 10:20:40 -05:00
parent a797f907ee
commit fca0f4dd65
8 changed files with 187 additions and 278 deletions

View File

@@ -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;
};