default search

Populate the entity search pages with the results of a search with a blank filter even if no filter has been specified
This commit is contained in:
Adam Young 2010-09-29 20:55:58 -04:00
parent 82455fdb12
commit b09467e448

View File

@ -129,7 +129,7 @@ function _ipa_entity_setup(jobj,unspecified) {
}; };
function setup_search_facet() { 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); search_create(obj_name, ipa_entity_search_list[obj_name], jobj);
$('<input />',{ $('<input />',{
@ -138,8 +138,7 @@ function _ipa_entity_setup(jobj,unspecified) {
click:new_on_click click:new_on_click
}).appendTo($( "div#" + obj_name + " > div.search-controls")); }).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) { function setup_details_facet(unspecified) {