From 2203bb650ce4730832cb9799be0ea1b855c07170 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Wed, 16 Nov 2011 21:07:20 -0600 Subject: Added HBAC Test page. This is the initial implementation of HBAC Test page. Currently it can select user, source/target group, service, rules, and execute the test. Other functionalities to be implemented include the search filter, external users/hosts, back/next buttons, validation, styling, and internalization. Ticket #388 --- install/ui/search.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'install/ui/search.js') diff --git a/install/ui/search.js b/install/ui/search.js index 221aa553..ffeafd0b 100644 --- a/install/ui/search.js +++ b/install/ui/search.js @@ -59,6 +59,8 @@ IPA.search_facet = function(spec) { 'class': 'right-aligned-facet-controls' }).appendTo(that.controls); + span.append(IPA.create_network_spinner()); + var filter_container = $('
', { 'class': 'search-filter' }).appendTo(span); @@ -84,8 +86,6 @@ IPA.search_facet = function(spec) { } }).appendTo(filter_container); - span.append(IPA.create_network_spinner()); - that.remove_button = IPA.action_button({ name: 'remove', label: IPA.messages.buttons.remove, @@ -183,12 +183,14 @@ IPA.search_facet = function(spec) { that.refresh = function() { var filter = []; - var current_entity = that.managed_entity; - filter.unshift(IPA.nav.get_state(current_entity.name+'-filter')); - current_entity = current_entity.get_containing_entity(); - while (current_entity !== null) { - filter.unshift(IPA.nav.get_state(current_entity.name+'-pkey')); - current_entity = current_entity.get_containing_entity(); + var entity = that.managed_entity; + + filter.unshift(IPA.nav.get_state(entity.name+'-filter')); + entity = entity.get_containing_entity(); + + while (entity !== null) { + filter.unshift(IPA.nav.get_state(entity.name+'-pkey')); + entity = entity.get_containing_entity(); } var command = IPA.command({ -- cgit