diff options
author | Endi S. Dewata <edewata@redhat.com> | 2010-11-19 16:58:55 -0600 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-11-22 15:37:17 -0500 |
commit | b9f539ba19b40361265c7897a73a1f5757ed0e68 (patch) | |
tree | 02aa4f7fd0f8c72d775f5a34c3ff3322630e7311 /install/static/hbacsvcgroup.js | |
parent | 27d8529a840bb1f54e520ccd70bf7c2113d03069 (diff) | |
download | freeipa.git-b9f539ba19b40361265c7897a73a1f5757ed0e68.tar.gz freeipa.git-b9f539ba19b40361265c7897a73a1f5757ed0e68.tar.xz freeipa.git-b9f539ba19b40361265c7897a73a1f5757ed0e68.zip |
SUDO Commands and Command Groups
The SUDO Commands and Command Groups pages have been added under
SUDO Rules tab.
Similar to HBAC navigation issue, these entities do not have their
own tab, so an exception has been added to the navigation code
to read sudo-entity parameter to determine the entity being viewed.
Fixing this issue will require framework changes.
New test data for these operations have been added.
Diffstat (limited to 'install/static/hbacsvcgroup.js')
-rwxr-xr-x | install/static/hbacsvcgroup.js | 39 |
1 files changed, 25 insertions, 14 deletions
diff --git a/install/static/hbacsvcgroup.js b/install/static/hbacsvcgroup.js index 520f8600..056c8fab 100755 --- a/install/static/hbacsvcgroup.js +++ b/install/static/hbacsvcgroup.js @@ -111,24 +111,12 @@ function ipa_hbacsvcgroup_search_facet(spec) { $('<li/>', { title: 'hbac', - text: 'HBAC Rules', - 'click': function() { - var state = {}; - state['entity'] = 'hbac'; - nav_push_state(state); - return false; - } + text: 'HBAC Rules' }).appendTo(ul); $('<li/>', { title: 'hbacsvc', - text: 'HBAC Services', - 'click': function() { - var state = {}; - state['entity'] = 'hbacsvc'; - nav_push_state(state); - return false; - } + text: 'HBAC Services' }).appendTo(ul); that.search_facet_create(container); @@ -140,6 +128,29 @@ function ipa_hbacsvcgroup_search_facet(spec) { }; + that.setup = function(container) { + + that.search_facet_setup(container); + + var action_panel = that.get_action_panel(); + + var li = $('li[title=hbac]', action_panel); + li.click(function() { + var state = {}; + state['hbac-entity'] = 'hbac'; + nav_push_state(state); + return false; + }); + + li = $('li[title=hbacsvc]', action_panel); + li.click(function() { + var state = {}; + state['hbac-entity'] = 'hbacsvc'; + nav_push_state(state); + return false; + }); + }; + return that; } |