ACK looks good

----- Original Message -----
> On 01/25/2011 11:38 AM, Adam Young wrote:
> 
> 
> _______________________________________________
> Freeipa-devel mailing list Freeipa-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/freeipa-devel Had left in a
> typo.
> 
> _______________________________________________
> Freeipa-devel mailing list
> Freeipa-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/freeipa-devel
From 28059f95700b664acb12d08f677be53b5430019d Mon Sep 17 00:00:00 2001
From: Adam Young <ayo...@redhat.com>
Date: Tue, 25 Jan 2011 11:37:08 -0500
Subject: [PATCH] action panel select for multiple entities

---
 install/ui/entity.js |   26 ++++++++++++++++++--------
 1 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/install/ui/entity.js b/install/ui/entity.js
index 1e9535c91b7e9083f5e3983d99d6afa753707517..70b583cc4a3838e2a0c92cee87077517e6e15a1c 100644
--- a/install/ui/entity.js
+++ b/install/ui/entity.js
@@ -480,6 +480,8 @@ IPA. facet_create_action_panel = function(container) {
         });
         return li;
     }
+
+
     /*Note, for debugging purposes, it is useful to set var pkey_type = 'text';*/
     var pkey_type = 'hidden';
     $('<input/>', {
@@ -502,19 +504,24 @@ 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)){
+                    if (nested_tabs.length > 1 ){
+                        main_facet.html(IPA.selected_icon +
+                                IPA.metadata[nested_tabs[nested_index]].label);
+
+                        main_facet.addClass('entity-facet-selected');
+                        main_facet.appendTo(ul);
+                    }
                     ul.append($('<li><span class="action-controls"/></li>'));
-
-                }else{
-                    main_facet.html(
-                        $('<span />',{
-                            "class":"input_link"
-                        }).
-                            append(IPA.back_icon + '  Back to List '));
+                } else {
+                        main_facet.html(
+                            $('<span />',{
+                                "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;
@@ -562,6 +569,9 @@ IPA. facet_create_action_panel = function(container) {
                     innerlist.append(facet_link);
                     if ( other_facet.name === IPA.current_facet( entity)){
 
+                        var text = facet_link.text();
+                        facet_link.html(IPA.selected_icon +  text);
+                        facet_link.addClass('entity-facet-selected');
                         innerlist.append($('<li class="entity-facet"><span class="action-controls"  /></li>'));
                     }
                 }
-- 
1.7.3.5

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

Reply via email to