summaryrefslogtreecommitdiffstats
path: root/install/ui/sudo.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-09-19 18:51:43 -0500
committerEndi S. Dewata <edewata@redhat.com>2011-09-22 16:55:47 +0000
commit63a7a358d4474a0ff5aab21fc0cff33429ac3348 (patch)
tree0bb92bcee627f1ae09740da6db5a9b529bc4356a /install/ui/sudo.js
parent26a2fa027d4e3d5c6953db325080074eedf64d98 (diff)
downloadfreeipa-63a7a358d4474a0ff5aab21fc0cff33429ac3348.tar.gz
freeipa-63a7a358d4474a0ff5aab21fc0cff33429ac3348.tar.xz
freeipa-63a7a358d4474a0ff5aab21fc0cff33429ac3348.zip
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
Diffstat (limited to 'install/ui/sudo.js')
-rw-r--r--install/ui/sudo.js23
1 files changed, 2 insertions, 21 deletions
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;
};