summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/search.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/src/freeipa/search.js')
-rw-r--r--install/ui/src/freeipa/search.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/search.js b/install/ui/src/freeipa/search.js
index 8bdce7f26..d8b9a4c18 100644
--- a/install/ui/src/freeipa/search.js
+++ b/install/ui/src/freeipa/search.js
@@ -131,7 +131,12 @@ IPA.search_facet = function(spec, no_init) {
that.show_add_dialog = function() {
var dialog = that.managed_entity.get_dialog('add');
- dialog.facet = that;
+ if (!that.adder_dialog) {
+ that.adder_dialog = dialog;
+ dialog.added.attach(function() {
+ that.refresh();
+ });
+ }
dialog.pkey_prefix = that.managed_entity_pkey_prefix();
dialog.open(that.container);
};