socialforge/app/views/student_work/update.js.erb

12 lines
453 B
Plaintext
Raw Normal View History

hideModal();
2016-01-20 16:03:28 +08:00
<% if @submit_result%>
var htmlvalue = '<%= escape_javascript(render :partial => 'student_work/work_edit_information') %>';
pop_box_new(htmlvalue, 500, 400);
2016-01-20 16:03:28 +08:00
<% else %>
window.location.href = '<%= edit_student_work_url(@work)%>';
<% end %>
function clickCanel() {
hideModal('#popbox02');
window.location.href= "<%= Setting.protocol%>://"+"<%= Setting.host_name%>"+"/student_work?homework=" + "<%= @homework.id%>&tab=2"
2015-11-09 11:16:19 +08:00
}