mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 16:51:55 -06:00
action panel select for multiple entities
This commit is contained in:
parent
5058c4c978
commit
bc7ed9b1e3
@ -480,6 +480,8 @@ IPA. facet_create_action_panel = function(container) {
|
|||||||
});
|
});
|
||||||
return li;
|
return li;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*Note, for debugging purposes, it is useful to set var pkey_type = 'text';*/
|
/*Note, for debugging purposes, it is useful to set var pkey_type = 'text';*/
|
||||||
var pkey_type = 'hidden';
|
var pkey_type = 'hidden';
|
||||||
$('<input/>', {
|
$('<input/>', {
|
||||||
@ -502,19 +504,24 @@ 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)){
|
||||||
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.addClass('entity-facet-selected');
|
||||||
main_facet.html(
|
main_facet.appendTo(ul);
|
||||||
$('<span />',{
|
}
|
||||||
"class":"input_link"
|
ul.append($('<li><span class="action-controls"/></li>'));
|
||||||
}).
|
} else {
|
||||||
append(IPA.back_icon + ' Back to List '));
|
main_facet.html(
|
||||||
|
$('<span />',{
|
||||||
|
"class":"input_link"
|
||||||
|
}).
|
||||||
|
append(IPA.back_icon + ' Back to List '));
|
||||||
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>'));
|
ul.append($('<li><hr/></li>'));
|
||||||
|
|
||||||
}
|
}
|
||||||
var facet_groups = {};
|
var facet_groups = {};
|
||||||
var li;
|
var li;
|
||||||
@ -562,6 +569,9 @@ IPA. facet_create_action_panel = function(container) {
|
|||||||
innerlist.append(facet_link);
|
innerlist.append(facet_link);
|
||||||
if ( other_facet.name === IPA.current_facet( entity)){
|
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>'));
|
innerlist.append($('<li class="entity-facet"><span class="action-controls" /></li>'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user