no entry for search if the search facet is selected, don't put an entry in the action panel for the search

This commit is contained in:
Adam Young 2011-01-14 17:04:07 -05:00 committed by Endi Sukma Dewata
parent 285ee9db0c
commit 6650dbf6a4

View File

@ -502,19 +502,19 @@ IPA. facet_create_action_panel = function(container) {
do not have search*/
if (entity.facets.length > 0 ){
if ( entity.facets[0].name === IPA.current_facet( entity)){
main_facet.text( IPA.metadata[entity_name].label);
main_facet.removeClass('back-to-search');
main_facet.appendTo(ul);
ul.append($('<li><span class="action-controls"/></li>'));
}else{
main_facet.html(
$('<span />',{
"class":"input_link"
"class":"input_link"
}).
append(IPA.back_icon + ' Back to List '));
main_facet.addClass('back-to-search');
main_facet.appendTo(ul);
}
ul.append($('<li><hr/></li>'));
}
var facet_groups = {};
var li;