summaryrefslogtreecommitdiffstats
path: root/install/ui/association.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/association.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/association.js')
-rw-r--r--install/ui/association.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/install/ui/association.js b/install/ui/association.js
index 32b4c3697..5354117d0 100644
--- a/install/ui/association.js
+++ b/install/ui/association.js
@@ -382,8 +382,7 @@ IPA.association_table_widget = function (spec) {
}
var entity = IPA.get_entity(that.entity_name);
- var facet_name = IPA.current_facet(entity);
- var facet = entity.get_facet(facet_name);
+ var facet = entity.get_facet();
if (facet.is_dirty()) {
var dialog = IPA.dirty_dialog({
@@ -408,8 +407,7 @@ IPA.association_table_widget = function (spec) {
}
var entity = IPA.get_entity(that.entity_name);
- var facet_name = IPA.current_facet(entity);
- var facet = entity.get_facet(facet_name);
+ var facet = entity.get_facet();
if (facet.is_dirty()) {
var dialog = IPA.dirty_dialog({