From b09467e44809a0858657e71c0c92852e1d483c5f Mon Sep 17 00:00:00 2001 From: Adam Young Date: Wed, 29 Sep 2010 20:55:58 -0400 Subject: [PATCH] default search Populate the entity search pages with the results of a search with a blank filter even if no filter has been specified --- install/static/entity.js | 5 ++--- 1 file 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); $('',{ @@ -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) {