diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-03-14 13:47:26 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:18 +0200 |
commit | bf8bae5080582f0088bda2aab6695d7cedc8b164 (patch) | |
tree | 527877a246898b40f1070aad6689df0404484188 /install/ui/src/freeipa/association.js | |
parent | ea2e4eecacafa9b436a57ebaa4c5e395252eda6b (diff) | |
download | freeipa-bf8bae5080582f0088bda2aab6695d7cedc8b164.tar.gz freeipa-bf8bae5080582f0088bda2aab6695d7cedc8b164.tar.xz freeipa-bf8bae5080582f0088bda2aab6695d7cedc8b164.zip |
Removed incorrect success message when adding of external member failed
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/association.js')
-rw-r--r-- | install/ui/src/freeipa/association.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/association.js b/install/ui/src/freeipa/association.js index 93b5ba7ad..30ae99393 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; |