summaryrefslogtreecommitdiffstats
path: root/install/static/entity.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2010-09-29 20:55:58 -0400
committerAdam Young <ayoung@redhat.com>2010-10-07 15:11:14 -0400
commitb09467e44809a0858657e71c0c92852e1d483c5f (patch)
tree3dcd7c1c19eac11fea132d5fecce5782c787eebb /install/static/entity.js
parent82455fdb12a9035682c7d7386b873744973f6dad (diff)
downloadfreeipa-b09467e44809a0858657e71c0c92852e1d483c5f.tar.gz
freeipa-b09467e44809a0858657e71c0c92852e1d483c5f.tar.xz
freeipa-b09467e44809a0858657e71c0c92852e1d483c5f.zip
default search
Populate the entity search pages with the results of a search with a blank filter even if no filter has been specified
Diffstat (limited to 'install/static/entity.js')
-rw-r--r--install/static/entity.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/install/static/entity.js b/install/static/entity.js
index 804f8e22d..e77d46513 100644
--- a/install/static/entity.js
+++ b/install/static/entity.js
@@ -129,7 +129,7 @@ function _ipa_entity_setup(jobj,unspecified) {
};
function setup_search_facet() {
- var filter = $.bbq.getState(obj_name + '-filter', true);
+ var filter = $.bbq.getState(obj_name + '-filter', true) || '';
search_create(obj_name, ipa_entity_search_list[obj_name], jobj);
$('<input />',{
@@ -138,8 +138,7 @@ function _ipa_entity_setup(jobj,unspecified) {
click:new_on_click
}).appendTo($( "div#" + obj_name + " > div.search-controls"));
- if (typeof filter != 'undefined')
- search_load(jobj, filter, null, null);
+ search_load(jobj, filter, null, null);
};
function setup_details_facet(unspecified) {