From 9afe4b98da13bbf1ce2fd68a660ee1d77fd84f2f Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Mon, 24 Oct 2011 14:53:29 +0200 Subject: Page is cleared before it is visible https://fedorahosted.org/freeipa/ticket/1459 Changes: * added clear method to widgets, section, search, details, association facets * clear and refresh method in facet are called only if key/filter was changed * added id generator for widgets --- install/ui/entity.js | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) (limited to 'install/ui/entity.js') diff --git a/install/ui/entity.js b/install/ui/entity.js index 704b5c43..ace44c3c 100644 --- a/install/ui/entity.js +++ b/install/ui/entity.js @@ -109,6 +109,9 @@ IPA.facet = function (spec) { that.header.load(data); }; + that.clear = function() { + }; + that.needs_update = function() { return true; }; @@ -336,6 +339,11 @@ IPA.facet_header = function(spec) { that.load = function(data) { if (!that.facet.disable_facet_tabs) { + var pkey = that.facet.pkey; + if(!pkey || !data) { + pkey = ''; + } + var facet_groups = that.facet.entity.facet_groups.values; for (var i=0; i