summaryrefslogtreecommitdiffstats
path: root/install/ui/src
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/src')
-rw-r--r--install/ui/src/freeipa/association.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/association.js b/install/ui/src/freeipa/association.js
index 93b5ba7a..30ae9939 100644
--- a/install/ui/src/freeipa/association.js
+++ b/install/ui/src/freeipa/association.js
@@ -169,6 +169,20 @@ IPA.attribute_adder_dialog = function(spec) {
that.buttons.remove('add_and_edit');
};
+ that.on_add = function() {
+
+ that.hide_message();
+ that.add(
+ function(data, text_status, xhr) {
+ if (data.result.completed > 0) {
+ that.added.notify();
+ that.close();
+ that.notify_success(data);
+ }
+ },
+ that.on_error);
+ };
+
that.create_buttons();
return that;