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,10 +502,8 @@ IPA. facet_create_action_panel = function(container) {
do not have search*/ do not have search*/
if (entity.facets.length > 0 ){ if (entity.facets.length > 0 ){
if ( entity.facets[0].name === IPA.current_facet( entity)){ 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>')); ul.append($('<li><span class="action-controls"/></li>'));
}else{ }else{
main_facet.html( main_facet.html(
$('<span />',{ $('<span />',{
@@ -515,6 +513,8 @@ IPA. facet_create_action_panel = function(container) {
main_facet.addClass('back-to-search'); main_facet.addClass('back-to-search');
main_facet.appendTo(ul); main_facet.appendTo(ul);
} }
ul.append($('<li><hr/></li>'));
} }
var facet_groups = {}; var facet_groups = {};
var li; var li;