handle and test the redirect when the goto-project checkbox is checked

This commit is contained in:
Reinier Balt 2010-10-16 17:22:55 +02:00
parent 4413cabbba
commit f284617513
4 changed files with 20 additions and 7 deletions

View file

@ -1,13 +1,14 @@
<% if @saved -%>
<% if @go_to_project %>
redirect_to ("<%= project_path(@project) %>")
<% end %>
<% if @go_to_project -%>
redirect_to ("<%= project_path(@project) -%>")
<% else -%>
hide_errors();
hide_empty_msg();
set_page_badge(<%= @down_count %>);
update_active_projects_container();
add_project();
clear_form();
<% end -%>
<% else -%>
show_errors();
<% end -%>