diff options
Diffstat (limited to 'install/ui/src/freeipa/add.js')
-rw-r--r-- | install/ui/src/freeipa/add.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/install/ui/src/freeipa/add.js b/install/ui/src/freeipa/add.js index 388b4e497..a2b60435e 100644 --- a/install/ui/src/freeipa/add.js +++ b/install/ui/src/freeipa/add.js @@ -59,8 +59,7 @@ IPA.entity_adder_dialog = function(spec) { function(data, text_status, xhr) { that.added.notify(); that.show_message(that.get_success_message(data)); - var facet = IPA.current_entity.get_facet(); - facet.refresh(); + that.facet.refresh(); that.reset(); that.focus_first_element(); }, @@ -101,8 +100,7 @@ IPA.entity_adder_dialog = function(spec) { that.add( function(data, text_status, xhr) { that.added.notify(); - var facet = IPA.current_entity.get_facet(); - facet.refresh(); + that.facet.refresh(); that.close(); that.notify_success(data); }, |