From 8d369519116cb1f257304d79d13e63188fc7d978 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Fri, 22 Feb 2013 17:12:53 +0100 Subject: Web UI:Choose different search option for cert-find This extends certificate search page by search option select. Therefore the search is not restricted to 'subject'. It should be replaced by https://fedorahosted.org/freeipa/ticket/191 in a future. https://fedorahosted.org/freeipa/ticket/3419 --- install/ui/src/freeipa/search.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'install/ui/src/freeipa/search.js') diff --git a/install/ui/src/freeipa/search.js b/install/ui/src/freeipa/search.js index d57c40126..be37f88b7 100644 --- a/install/ui/src/freeipa/search.js +++ b/install/ui/src/freeipa/search.js @@ -83,14 +83,14 @@ IPA.search_facet = function(spec, no_init) { div.append(IPA.create_network_spinner()); - var filter_container = $('
', { + that.filter_container = $('
', { 'class': 'search-filter' }).appendTo(div); that.filter = $('', { type: 'text', name: 'filter' - }).appendTo(filter_container); + }).appendTo(that.filter_container); that.filter.keypress(function(e) { /* if the key pressed is the enter key */ @@ -106,7 +106,7 @@ IPA.search_facet = function(spec, no_init) { that.find(); return false; } - }).appendTo(filter_container); + }).appendTo(that.filter_container); that.create_control_buttons(that.controls); }; @@ -258,6 +258,8 @@ IPA.search_facet = function(spec, no_init) { // methods that should be invoked by subclasses that.search_facet_refresh = that.refresh; that.search_facet_create_refresh_command = that.create_refresh_command; + that.search_facet_create_header = that.create_header; + that.search_facet_show = that.show; return that; }; -- cgit