From ed46ca0735afd15fff99b9eb768c97a260d2ac76 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 2 Jun 2016 13:45:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E6=8B=96=E6=8B=BD=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/student_work/_evaluation_un_work.html.erb | 2 +- public/javascripts/resizeable_table.js | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) 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;