diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-02-22 17:12:53 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-03-18 15:11:18 +0100 |
commit | 8d369519116cb1f257304d79d13e63188fc7d978 (patch) | |
tree | c743d2548f14cba4d7be324920f9add2ab0d0afb /install/ui/src/freeipa/search.js | |
parent | 070fc176aecc3c7661cdb085b157d2d4c653fc46 (diff) | |
download | freeipa-8d369519116cb1f257304d79d13e63188fc7d978.tar.gz freeipa-8d369519116cb1f257304d79d13e63188fc7d978.tar.xz freeipa-8d369519116cb1f257304d79d13e63188fc7d978.zip |
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
Diffstat (limited to 'install/ui/src/freeipa/search.js')
-rw-r--r-- | install/ui/src/freeipa/search.js | 8 |
1 files changed, 5 insertions, 3 deletions
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 = $('<div/>', { + that.filter_container = $('<div/>', { 'class': 'search-filter' }).appendTo(div); that.filter = $('<input/>', { 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; }; |