From 99fc3d597af0cf07db1379b87ef2f635100dc89f Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 5 Feb 2013 13:33:58 +0100 Subject: Remove IPA.current_entity usage https://fedorahosted.org/freeipa/ticket/3236 --- install/ui/src/freeipa/add.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'install/ui/src/freeipa/add.js') diff --git a/install/ui/src/freeipa/add.js b/install/ui/src/freeipa/add.js index 388b4e49..a2b60435 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); }, -- cgit