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/dns.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'install/ui/src/freeipa/dns.js') diff --git a/install/ui/src/freeipa/dns.js b/install/ui/src/freeipa/dns.js index 525debb5..8d6f96fa 100644 --- a/install/ui/src/freeipa/dns.js +++ b/install/ui/src/freeipa/dns.js @@ -2032,22 +2032,15 @@ IPA.dns.record_type_table_widget = function(spec) { }; that.reload_facet = function(data) { - - //FIXME: seems as bad approach - var facet = IPA.current_entity.get_facet(); - facet.load(data); + that.facet.load(data); }; that.refresh_facet = function() { - - //FIXME: seems as bad approach - var facet = IPA.current_entity.get_facet(); - facet.refresh(); + that.facet.refresh(); }; that.notify_facet_update = function() { - var facet = IPA.current_entity.get_facet(); - facet.on_update.notify(); + that.facet.on_update.notify(); }; that.update = function(values) { -- cgit