Skip to content

Commit

Permalink
render view html only after submitting modal sms/email form
Browse files Browse the repository at this point in the history
  • Loading branch information
tampakis committed Oct 12, 2017
1 parent 050d201 commit 36ed8db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def add_show_tools_partial(name, opts = {})

respond_to do |format|
format.html do
return render "#{name}_success" if request.xhr?
return render "#{name}_success", layout: false if request.xhr?
redirect_to action_success_redirect_path
end
end
Expand Down

0 comments on commit 36ed8db

Please sign in to comment.