From bf8bae5080582f0088bda2aab6695d7cedc8b164 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 14 Mar 2013 13:47:26 +0100 Subject: Removed incorrect success message when adding of external member failed https://fedorahosted.org/freeipa/ticket/3235 --- install/ui/src/freeipa/association.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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; -- cgit