summaryrefslogtreecommitdiffstats
path: root/install/ui/details.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/details.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/details.js')
-rw-r--r--install/ui/details.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/install/ui/details.js b/install/ui/details.js
index 45ffa6f16..50fccce49 100644
--- a/install/ui/details.js
+++ b/install/ui/details.js
@@ -484,12 +484,10 @@ IPA.details_facet = function(spec) {
}
};
- function new_key(){
+ that.needs_update = function() {
var pkey = IPA.nav.get_state(that.entity_name+'-pkey');
return pkey != that.pkey;
- }
- that.new_key = new_key;
-
+ };
that.is_dirty = function() {
var sections = that.sections.values;