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/widget.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'install/ui/src/freeipa/widget.js') diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index 61bb03c23..d66f82097 100644 --- a/install/ui/src/freeipa/widget.js +++ b/install/ui/src/freeipa/widget.js @@ -2288,16 +2288,12 @@ IPA.attribute_table_widget = function(spec) { that.reload_facet = function(data) { - //FIXME: bad approach - widget is directly manipulating with facet - var facet = IPA.current_entity.get_facet(); - facet.load(data); + that.facet.load(data); }; that.refresh_facet = function() { - //FIXME: bad approach - var facet = IPA.current_entity.get_facet(); - facet.refresh(); + that.facet.refresh(); }; that.attribute_table_adder_dialog_create_command = that.adder_dialog_create_command; -- cgit