socialforge/app/views/poll/commit_poll.js.erb

7 lines
327 B
Plaintext

<% if @status == 0 %>
notice_box_redirect("<%= poll_index_path(:polls_group_id => @course.id,:polls_type => 'Course') %>", "提交成功!");
<% elsif @status == 1 %>
notice_box("您还有尚未作答的必答题目请完成后再提交!");
<% else %>
notice_box("发生未知错误,请检查您的网络。");
<% end %>