socialforge/app/views/works/destroy.js.erb

8 lines
298 B
Plaintext

hideModal();
<% if @hw_status == 1 %>
window.location.href = "<%=user_contest_community_path(User.current.id) %>"
<% elsif @hw_status == 2 %>
window.location.href = "<%=contest_path(@contest.id) %>"
<% else %>
window.location.href = "<%=works_path(:contest => @contest.id) %>"
<% end %>