Skip to content

Commit

Permalink
Fix the access to child services from parents under My Services
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Mar 28, 2019
1 parent 7ac053c commit 7881d82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/assets/javascripts/miq_tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ function miqOnClickMenuRoles(id) {
});
}

function miqTreeSelect(key) {
var url = '/' + ManageIQ.controller + '/tree_select/?id=' + encodeURIComponent(key.split('__')[0]);
miqJqueryRequest(url, {beforeSend: true});
}

// Activate and focus on a node within a tree given the node's key
function miqTreeActivateNode(tree, key) {
miqSparkle(true);
Expand Down
2 changes: 1 addition & 1 deletion app/views/service/_svcs_show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
%table.table.table-striped.table-bordered.table-hover
%tbody
- child_services.sort_by { |o| o.name.downcase }.each do |s|
%tr{:onclick => "miqTreeActivateNode('svcs_tree', 's-#{s.id}');", :title => _("View this Service")}
%tr{:onclick => "miqTreeSelect('s-#{s.id}');", :title => _("View this Service")}
%td.table-view-pf-select
%i.pficon.pficon-service
%td
Expand Down

0 comments on commit 7881d82

Please sign in to comment.