From 99fc3d597af0cf07db1379b87ef2f635100dc89f Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 5 Feb 2013 13:33:58 +0100 Subject: Remove IPA.current_entity usage https://fedorahosted.org/freeipa/ticket/3236 --- install/ui/src/freeipa/dialog.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'install/ui/src/freeipa/dialog.js') diff --git a/install/ui/src/freeipa/dialog.js b/install/ui/src/freeipa/dialog.js index f2326b32..a553814f 100644 --- a/install/ui/src/freeipa/dialog.js +++ b/install/ui/src/freeipa/dialog.js @@ -97,6 +97,11 @@ IPA.dialog = function(spec) { that.close_on_escape = spec.close_on_escape !== undefined ? spec.close_on_escape : true; + // FIXME: remove facet reference + // Purpose of facet reference is to obtain pkeys or ability to reload + // facet. Such usage makes the code more spaghetti. It should be replaced. + that.facet = spec.facet; + that.widgets = IPA.widget_container(); that.fields = IPA.field_container({ container: that }); that.buttons = $.ordered_map(); -- cgit