mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-08 08:34:21 +01:00
handle and test the redirect when the goto-project checkbox is checked
This commit is contained in:
parent
4413cabbba
commit
f284617513
4 changed files with 20 additions and 7 deletions
|
|
@ -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 -%>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue