diff --git a/app/views/users/new_user_commit_homework.html.erb b/app/views/users/new_user_commit_homework.html.erb index 4a7e5cee3..238102879 100644 --- a/app/views/users/new_user_commit_homework.html.erb +++ b/app/views/users/new_user_commit_homework.html.erb @@ -7,6 +7,15 @@ $(function(){ $("#RSide").removeAttr("id"); $("#Container").css("width","1000px"); + <%if @homework.anonymous_comment == 0 && @homework.homework_detail_manual.comment_status != 1%> + $('#ajax-modal').html('<%= escape_javascript(render :partial => 'student_work/new_student_work_alert') %>'); + showModal('ajax-modal', '360px'); + $('#ajax-modal').siblings().remove(); + $('#ajax-modal').before("" + + ""); + $('#ajax-modal').parent().css("top","65%").css("left","60%").css("border","3px solid #269ac9"); + $('#ajax-modal').parent().addClass("anonymos_work"); + <% end%> });