summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/add.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-02-05 13:33:58 +0100
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:18 +0200
commit99fc3d597af0cf07db1379b87ef2f635100dc89f (patch)
treef900f815c46bdd3d4a8cf654dc787d1645517f65 /install/ui/src/freeipa/add.js
parenta3e0e671a1454e690856e0f995896f51f84928f7 (diff)
downloadfreeipa-99fc3d597af0cf07db1379b87ef2f635100dc89f.tar.gz
freeipa-99fc3d597af0cf07db1379b87ef2f635100dc89f.tar.xz
freeipa-99fc3d597af0cf07db1379b87ef2f635100dc89f.zip
Remove IPA.current_entity usage
https://fedorahosted.org/freeipa/ticket/3236
Diffstat (limited to 'install/ui/src/freeipa/add.js')
-rw-r--r--install/ui/src/freeipa/add.js6
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);
},