summaryrefslogtreecommitdiffstats
path: root/install/ui/entity.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-01-25 11:37:08 -0500
committerAdam Young <ayoung@redhat.com>2011-01-25 13:54:57 -0500
commitbc7ed9b1e3ad520c7fc61b393ddfa6a99c09de2e (patch)
tree5bb21a1ca6092349152d5241e428f7b8be4a83ec /install/ui/entity.js
parent5058c4c978ccc66bd2851be5cb0fcd054ce4cc7a (diff)
downloadfreeipa-bc7ed9b1e3ad520c7fc61b393ddfa6a99c09de2e.tar.gz
freeipa-bc7ed9b1e3ad520c7fc61b393ddfa6a99c09de2e.tar.xz
freeipa-bc7ed9b1e3ad520c7fc61b393ddfa6a99c09de2e.zip
action panel select for multiple entities
Diffstat (limited to 'install/ui/entity.js')
-rw-r--r--install/ui/entity.js26
1 files changed, 18 insertions, 8 deletions
diff --git a/install/ui/entity.js b/install/ui/entity.js
index 1e9535c91..70b583cc4 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)){
- ul.append($('<li><span class="action-controls"/></li>'));
+ if (nested_tabs.length > 1 ){
+ main_facet.html(IPA.selected_icon +
+ IPA.metadata[nested_tabs[nested_index]].label);
- }else{
- main_facet.html(
- $('<span />',{
- "class":"input_link"
- }).
- append(IPA.back_icon + ' Back to List '));
+ 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 '));
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>'));
}
}