From a4aba826a0e1327ba8df05da19d9ad0055d8269d Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 28 Apr 2011 19:17:58 -0500 Subject: Added facet container. Facet container has been added to hold facet header (i.e. title, search fields, buttons, links) and facet content. Each facet now occupies separate container, so it can be shown/hidden without having to redraw the content. --- install/ui/ipa.js | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'install/ui/ipa.js') diff --git a/install/ui/ipa.js b/install/ui/ipa.js index 83b25e50..c21c16ec 100644 --- a/install/ui/ipa.js +++ b/install/ui/ipa.js @@ -126,11 +126,11 @@ var IPA = ( function () { batch.execute(); }; - that.get_entities = function () { + that.get_entities = function() { return that.entities; }; - that.get_entity = function (name) { + that.get_entity = function(name) { return that.entities_by_name[name]; }; @@ -139,6 +139,17 @@ var IPA = ( function () { that.entities_by_name[entity.name] = entity; }; + that.remove_entity = function(name) { + for (var i=0; i