学生提交作品后,跳转至“作品列表”,而不是“作业信息”

cxt_course
cxt 9 years ago
parent 17c82c5291
commit a9a53caa13

@ -1033,7 +1033,7 @@ class UsersController < ApplicationController
update_org_activity(homework.class,homework.id) update_org_activity(homework.class,homework.id)
flash[:notice] = l(:notice_successful_create) flash[:notice] = l(:notice_successful_create)
redirect_to student_work_index_url(:homework => params[:homework]) redirect_to student_work_index_url(:homework => params[:homework], :tab => 2)
else else
render_403 render_403
end end

@ -38,6 +38,6 @@
<script type="text/javascript"> <script type="text/javascript">
function clickOK() { function clickOK() {
window.location.href = '<%= student_work_index_url(:homework => @homework.id)%>'; window.location.href= "<%= Setting.protocol%>://"+"<%= Setting.host_name%>"+"/student_work?homework=" + "<%= @homework.id%>&tab=2"
} }
</script> </script>

@ -39,6 +39,6 @@
<script type="text/javascript"> <script type="text/javascript">
function clickOK() { function clickOK() {
window.location.href = '<%= student_work_index_url(:homework => @homework.id)%>'; window.location.href= "<%= Setting.protocol%>://"+"<%= Setting.host_name%>"+"/student_work?homework=" + "<%= @homework.id%>&tab=2"
} }
</script> </script>

@ -12,5 +12,5 @@ window.location.href = '<%= edit_student_work_url(@work)%>';
function clickCanel() { function clickCanel() {
hideModal('#popbox02'); hideModal('#popbox02');
window.location.href = '<%= student_work_index_url(:homework => @homework.id)%>'; window.location.href= "<%= Setting.protocol%>://"+"<%= Setting.host_name%>"+"/student_work?homework=" + "<%= @homework.id%>&tab=2"
} }
Loading…
Cancel
Save