summaryrefslogtreecommitdiffstats
path: root/install/static/hbacsvc.js
diff options
context:
space:
mode:
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;