From 3502f579f595137db1fe7ebca55a2369dace06b7 Mon Sep 17 00:00:00 2001
From: Adam Young <ayo...@redhat.com>
Date: Fri, 14 Jan 2011 17:04:07 -0500
Subject: [PATCH] no entry for search
 if the search facet is selected, don't put an entry in the action panel for the search

---
 install/static/entity.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/install/static/entity.js b/install/static/entity.js
index 60b1e0672e23bc94b6fb2d87d7d9d9ad0b764a27..ffc1628f5fc6d59ccf57fe4c21345fb5230a5cde 100644
--- a/install/static/entity.js
+++ b/install/static/entity.js
@@ -491,19 +491,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;
-- 
1.7.3.4

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to