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

15 lines
594 B
Plaintext

hideModal();
<% if @has_commit %>
var htmlvalue = '<%= escape_javascript(render :partial => 'student_work/has_commit_work') %>';
pop_box_new(htmlvalue, 500, 163);
<% elsif @submit_result%>
var htmlvalue = '<%= escape_javascript(render :partial => 'student_work/work_information') %>';
pop_box_new(htmlvalue, 500, 400);
<% else %>
window.location.href = '<%= new_student_work_url(:homework => @homework.id)%>';
<% end %>
function clickCanel() {
hideModal('#popbox02');
window.location.href = '<%= student_work_index_url(:homework => @homework.id)%>';
}