Skip to content

Commit

Permalink
Reload button should use the current @display
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed Nov 9, 2017
1 parent 598426d commit 6b1b2af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/controllers/ansible_repository_controller.rb
Expand Up @@ -40,11 +40,11 @@ def button
page.replace("gtl_div", :partial => "layouts/gtl")
end
elsif params[:pressed] == 'ansible_repository_reload'
@display = 'summary_only'
params[:display] = @display if @display
show
render :update do |page|
page << javascript_prologue
page.replace("main_div", :template => "ansible_repository/show")
page.replace("main_div", :template => "ansible_repository/show" )
end
end
end
Expand Down
Expand Up @@ -5,7 +5,7 @@ class ApplicationHelper::Toolbar::AnsibleRepositoryCenter < ApplicationHelper::T
'fa fa-repeat fa-lg',
N_('Reload the current display'),
N_('Reload'),
:url_parms => "main_div",
:url_parms => ":display => @display",
:send_checked => true,
:klass => ApplicationHelper::Button::ButtonWithoutRbacCheck),
])
Expand Down

0 comments on commit 6b1b2af

Please sign in to comment.