summaryrefslogtreecommitdiffstats
path: root/install/ui/add.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-07-21 21:29:55 -0500
committerAdam Young <ayoung@redhat.com>2011-07-22 12:13:10 -0400
commitca7395c35367965f8824f2bfecfa3f79f4b8a87b (patch)
tree6258c97d760c56421a6e7dc47050216334073b4f /install/ui/add.js
parentdf7ee2ccf5ff12ab43b1a97385b4f28bc64ef083 (diff)
downloadfreeipa-ca7395c35367965f8824f2bfecfa3f79f4b8a87b.tar.gz
freeipa-ca7395c35367965f8824f2bfecfa3f79f4b8a87b.tar.xz
freeipa-ca7395c35367965f8824f2bfecfa3f79f4b8a87b.zip
Refactored IPA.current_facet().
The IPA.current_facet() has been merged into IPA.entity.setup() and replaced by IPA.entity.get_facet(). The setup() will read the current facet's name from the <entity>-facet URL parameter and store the facet object in the entity object. The get_facet() without any parameter will return the current facet object.
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();