summaryrefslogtreecommitdiffstats
path: root/install/static/hbacsvcgroup.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/static/hbacsvcgroup.js')
-rwxr-xr-xinstall/static/hbacsvcgroup.js39
1 files changed, 25 insertions, 14 deletions
diff --git a/install/static/hbacsvcgroup.js b/install/static/hbacsvcgroup.js
index 520f86004..056c8fab1 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;
}