summaryrefslogtreecommitdiffstats
path: root/install/ui/add.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/add.js')
-rw-r--r--install/ui/add.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/install/ui/add.js b/install/ui/add.js
index b6b797c45..614a20905 100644
--- a/install/ui/add.js
+++ b/install/ui/add.js
@@ -50,8 +50,7 @@ IPA.add_dialog = function (spec) {
that.add(
record,
function(data, text_status, xhr) {
- var facet_name = IPA.current_facet(IPA.current_entity);
- var facet = IPA.current_entity.get_facet(facet_name);
+ var facet = IPA.current_entity.get_facet();
var table = facet.table;
table.refresh();
that.close();
@@ -66,8 +65,7 @@ IPA.add_dialog = function (spec) {
that.add(
record,
function(data, text_status, xhr) {
- var facet_name = IPA.current_facet(IPA.current_entity);
- var facet = IPA.current_entity.get_facet(facet_name);
+ var facet = IPA.current_entity.get_facet();
var table = facet.table;
table.refresh();
that.reset();