Skip to content
Browse files

Fix the welcome info display

  • Loading branch information...
1 parent 70bb7b2 commit 8a78e3a89bfcecfb23d80874fccfa2a9746bf73f @jamesu committed
Showing with 1 addition and 8 deletions.
  1. +0 −7 app/controllers/companies_controller.rb
  2. +1 −1 app/views/dashboard/index.html.erb
View
7 app/controllers/companies_controller.rb
@@ -120,15 +120,8 @@ def hide_welcome_info
respond_to do |format|
format.html {
- error_status(false, :welcome_info_hidden) if saved
redirect_back_or_default :controller => 'dashboard'
}
- format.js {
- # Quick update here, no need for a whole .rjs!
- render :update do |pg|
- pg.select('#new_account_info').fancyRemove
- end
- }
end
end
View
2 app/views/dashboard/index.html.erb
@@ -14,7 +14,7 @@
<div class='content'><%= raw step[:del] ? "<del>#{step[:content]}</del>" : "#{step[:content]}" %></div>
<% end %>
<% if @logged_user.is_admin %>
- <p><%= link_to t('hide_welcome_info'), hide_welcome_info_company_path(Company.owner), :class => 'cancel' %></p>
+ <p><%= link_to t('hide_welcome_info').html_safe, hide_welcome_info_company_path(Company.owner), :method => 'put' %></p>
<% end %>
</div>
<% end %>

0 comments on commit 8a78e3a

Please sign in to comment.
Something went wrong with that request. Please try again.