summaryrefslogtreecommitdiffstats
path: root/install/static/hbacsvc.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-11-19 16:58:55 -0600
committerAdam Young <ayoung@redhat.com>2010-11-22 15:37:17 -0500
commitb9f539ba19b40361265c7897a73a1f5757ed0e68 (patch)
tree02aa4f7fd0f8c72d775f5a34c3ff3322630e7311 /install/static/hbacsvc.js
parent27d8529a840bb1f54e520ccd70bf7c2113d03069 (diff)
downloadfreeipa-b9f539ba19b40361265c7897a73a1f5757ed0e68.tar.gz
freeipa-b9f539ba19b40361265c7897a73a1f5757ed0e68.tar.xz
freeipa-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/hbacsvc.js')
-rwxr-xr-xinstall/static/hbacsvc.js35
1 files changed, 21 insertions, 14 deletions
diff --git a/install/static/hbacsvc.js b/install/static/hbacsvc.js
index 13135da2..26a2e8a0 100755
--- a/install/static/hbacsvc.js
+++ b/install/static/hbacsvc.js
@@ -100,24 +100,12 @@ function ipa_hbacsvc_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: 'hbacsvcgroup',
- text: 'HBAC Service Groups',
- 'click': function() {
- var state = {};
- state['entity'] = 'hbacsvcgroup';
- nav_push_state(state);
- return false;
- }
+ text: 'HBAC Service Groups'
}).appendTo(ul);
that.search_facet_create(container);
@@ -126,10 +114,29 @@ function ipa_hbacsvc_search_facet(spec) {
container.children().last().prepend(
$('<h2/>', { 'html': 'HBAC Services' }));
container.children().last().prepend('<br/><br/>');
+ };
+ 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=hbacsvcgroup]', action_panel);
+ li.click(function() {
+ var state = {};
+ state['hbac-entity'] = 'hbacsvcgroup';
+ nav_push_state(state);
+ return false;
+ });
};
return that;