diff --git a/app/views/courses/homework.html.erb b/app/views/courses/homework.html.erb index f5fe74953..82a0b579d 100644 --- a/app/views/courses/homework.html.erb +++ b/app/views/courses/homework.html.erb @@ -27,9 +27,20 @@ <%= student_new_homework bid %> <% end %>
-

- <%= textilizable bid, :description %> -

+ +
+
+ <%= textilizable bid, :description %> +
+
+ diff --git a/public/javascripts/course.js b/public/javascripts/course.js index babdc4043..9bc784e70 100644 --- a/public/javascripts/course.js +++ b/public/javascripts/course.js @@ -34,10 +34,7 @@ function bid_show_more_des(id) { $("#bid_description_" + id).toggleClass("news_description_none"); } -//将右侧的最小高度设置成左侧高度,美化界面 -$(document).ready(function () { - $("#RSide").css("min-height",$("#LSide").height()-30); -}); + //课程作业结束时间倒计时 function show_bid_dead_line(year,month,day,divname) { @@ -152,9 +149,15 @@ function hidden_atert_form(cur_page,cur_type) hideModal($("#popbox")); } +//当课程描述长度小于112px时,不显示更多按钮 $(function(){ if($("#course_description_content").height()>112) { $("#lg-foot").show(); } +}); + +//将右侧的最小高度设置成左侧高度,美化界面 +$(document).ready(function () { + $("#RSide").css("min-height",$("#LSide").height()-30); }); \ No newline at end of file