mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fixed navigation problem with nested entities.
Replaced _entity with -entity in IPA.tab_state(). Replaced sudo-entity with sudorule-entity.
This commit is contained in:
parent
7b91e9d83d
commit
df48c9cf71
@ -138,7 +138,7 @@ function _nav_update_tabs(nls, container,depth)
|
||||
|
||||
// TODO: do not hard-code
|
||||
if (entity_name == 'hbac' && nav_get_state('hbac-entity')) entity_name = nav_get_state('hbac-entity');
|
||||
if (entity_name == 'sudorule' && nav_get_state('sudo-entity')) entity_name = nav_get_state('sudo-entity');
|
||||
if (entity_name == 'sudorule' && nav_get_state('sudorule-entity')) entity_name = nav_get_state('sudorule-entity');
|
||||
|
||||
var entity = IPA.get_entity(entity_name);
|
||||
entity.setup(container2);
|
||||
|
@ -125,7 +125,7 @@ function ipa_sudocmd_search_facet(spec) {
|
||||
var li = $('li[title=sudorule]', action_panel);
|
||||
li.click(function() {
|
||||
var state = {};
|
||||
state['sudo-entity'] = 'sudorule';
|
||||
state['sudorule-entity'] = 'sudorule';
|
||||
nav_push_state(state);
|
||||
return false;
|
||||
});
|
||||
@ -133,7 +133,7 @@ function ipa_sudocmd_search_facet(spec) {
|
||||
li = $('li[title=sudocmdgroup]', action_panel);
|
||||
li.click(function() {
|
||||
var state = {};
|
||||
state['sudo-entity'] = 'sudocmdgroup';
|
||||
state['sudorule-entity'] = 'sudocmdgroup';
|
||||
nav_push_state(state);
|
||||
return false;
|
||||
});
|
||||
|
@ -140,7 +140,7 @@ function ipa_sudocmdgroup_search_facet(spec) {
|
||||
var li = $('li[title=sudorule]', action_panel);
|
||||
li.click(function() {
|
||||
var state = {};
|
||||
state['sudo-entity'] = 'sudorule';
|
||||
state['sudorule-entity'] = 'sudorule';
|
||||
nav_push_state(state);
|
||||
return false;
|
||||
});
|
||||
@ -148,7 +148,7 @@ function ipa_sudocmdgroup_search_facet(spec) {
|
||||
li = $('li[title=sudocmd]', action_panel);
|
||||
li.click(function() {
|
||||
var state = {};
|
||||
state['sudo-entity'] = 'sudocmd';
|
||||
state['sudorule-entity'] = 'sudocmd';
|
||||
nav_push_state(state);
|
||||
return false;
|
||||
});
|
||||
|
@ -124,7 +124,7 @@ function ipa_sudorule_search_facet(spec) {
|
||||
var li = $('li[title=sudocmd]', action_panel);
|
||||
li.click(function() {
|
||||
var state = {};
|
||||
state['sudo-entity'] = 'sudocmd';
|
||||
state['sudorule-entity'] = 'sudocmd';
|
||||
nav_push_state(state);
|
||||
return false;
|
||||
});
|
||||
@ -132,7 +132,7 @@ function ipa_sudorule_search_facet(spec) {
|
||||
li = $('li[title=sudocmdgroup]', action_panel);
|
||||
li.click(function() {
|
||||
var state = {};
|
||||
state['sudo-entity'] = 'sudocmdgroup';
|
||||
state['sudorule-entity'] = 'sudocmdgroup';
|
||||
nav_push_state(state);
|
||||
return false;
|
||||
});
|
||||
|
@ -83,7 +83,7 @@ IPA.tab_state = function(entity_name){
|
||||
if (nested_entities[nested_index].name === entity_name){
|
||||
state.navigation = top_tab_index;
|
||||
state[top_tab.name] = subtab_index;
|
||||
state[ top_tab.children[subtab_index].name+'_entity'] = entity_name;
|
||||
state[ top_tab.children[subtab_index].name+'-entity'] = entity_name;
|
||||
return state;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user