From ca7395c35367965f8824f2bfecfa3f79f4b8a87b Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 21 Jul 2011 21:29:55 -0500 Subject: 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 -facet URL parameter and store the facet object in the entity object. The get_facet() without any parameter will return the current facet object. --- install/ui/details.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'install/ui/details.js') 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; -- cgit