diff --git a/app/views/student_work/_evaluation_un_work.html.erb b/app/views/student_work/_evaluation_un_work.html.erb index 052230612..93c800879 100644 --- a/app/views/student_work/_evaluation_un_work.html.erb +++ b/app/views/student_work/_evaluation_un_work.html.erb @@ -16,7 +16,7 @@ <%= student_work.user.show_name%> " onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor:pointer;"> - + <%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%> <% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %> diff --git a/public/javascripts/resizeable_table.js b/public/javascripts/resizeable_table.js index d7e48bb2e..0d79ba737 100644 --- a/public/javascripts/resizeable_table.js +++ b/public/javascripts/resizeable_table.js @@ -2,12 +2,9 @@ * Created by ttang on 2016/5/24. */ $(document).ready(function(){ - window.onload = function(){ - $("th").each(function(){ - $(this).css("width",$(this).width()-1); - }); - } - + $("th").each(function(){ + $(this).css("width",$(this).width()-1); + }); resizeable_table = function(colS,colE,p1,p2){ var headerTds = document.getElementById("homework_table").rows[0].cells; var mousedown = false;