From 63a7a358d4474a0ff5aab21fc0cff33429ac3348 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 19 Sep 2011 18:51:43 -0500 Subject: Fixed problem enrolling member with the same name. The IPA.association_adder_dialog has been modified to use an exclusion list to hide entries that are already enrolled. The IPA.adder_dialog has been modified to store the columns directly in the available & selected tables. Ticket #1797 --- install/ui/sudo.js | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'install/ui/sudo.js') diff --git a/install/ui/sudo.js b/install/ui/sudo.js index cdd5e50af..23e5f7a24 100644 --- a/install/ui/sudo.js +++ b/install/ui/sudo.js @@ -1076,7 +1076,8 @@ IPA.sudorule_association_table_widget = function(spec) { other_entity: that.other_entity, attribute_member: that.attribute_member, entity: that.entity, - external: that.external + external: that.external, + exclude: that.values }); }; @@ -1102,24 +1103,6 @@ IPA.sudo.rule_association_adder_dialog = function(spec) { that.external = spec.external; - - function setup_table(){ - if (!that.columns.length) { - var pkey_name = IPA.metadata.objects[that.other_entity].primary_key; - that.create_column({ - entity: that.entity, - name: pkey_name, - label: IPA.metadata.objects[that.other_entity].label, - primary_key: true, - width: '200px' - }); - } - } - - that.create = function() { - that.adder_dialog_create(); - }; - that.add = function() { var rows = that.available_table.remove_selected_rows(); that.selected_table.add_rows(rows); @@ -1136,7 +1119,5 @@ IPA.sudo.rule_association_adder_dialog = function(spec) { } }; - setup_table(); - return that; }; -- cgit