diff --git a/app/views/users/new_user_commit_homework.html.erb b/app/views/users/new_user_commit_homework.html.erb index 8b02b4594..ab7cb5b59 100644 --- a/app/views/users/new_user_commit_homework.html.erb +++ b/app/views/users/new_user_commit_homework.html.erb @@ -70,11 +70,15 @@
请使用 <%= @homework.language_name %> 语言编写
-
+
<%= f.text_area :name, id: 'program-title', class:"InputBox W700", placeholder:"请概括你的代码的功能" %>
<%= f.text_area :description, id: 'program-src', class:"InputBox W700 H150", placeholder:"请贴入你的代码", rows: 10 %> +
测试代码 diff --git a/public/javascripts/homework.js b/public/javascripts/homework.js index 45902ef16..ca07093fe 100644 --- a/public/javascripts/homework.js +++ b/public/javascripts/homework.js @@ -95,9 +95,9 @@ $(function(){ //发布作业 - $('#program-src').focus(function(){ - $(this).css('height', '100px'); - }); + //$('#program-src').focus(function(){ + // $(this).css('height', '100px'); + //}); var datepickerOptions={dateFormat:'yy-mm-dd',firstDay:0,showWeek:true,showOtherMonths:true,selectOtherMonths:true};