From e2990fb55cd56b0a3328ecd55719861ca20bcb11 Mon Sep 17 00:00:00 2001 From: cxt Date: Thu, 22 Oct 2015 17:42:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=8A=A8=E6=80=81=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E7=9A=84=E9=AB=98=E5=BA=A6=E4=B8=BA20=E8=A1=8C?= =?UTF-8?q?=EF=BC=8C=E5=8F=AF=E5=B1=95=E5=BC=80=E5=92=8C=E6=94=B6=E8=B5=B7?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/courses/_course_activity.html.erb | 17 +++++++++++++---- app/views/users/_course_homework.html.erb | 10 ++++++++-- app/views/users/_course_message.html.erb | 19 ++++++++++++------- app/views/users/_course_news.html.erb | 10 ++++++++-- app/views/users/_course_poll.html.erb | 10 +++++++++- app/views/users/_project_issue.html.erb | 15 ++++++++++----- app/views/users/_project_message.html.erb | 18 ++++++++++++------ app/views/users/_user_activities.html.erb | 13 +++++++++++++ .../users/_user_homework_detail.html.erb | 10 ++++++++-- app/views/users/_user_homework_list.html.erb | 13 +++++++++++++ public/stylesheets/courses.css | 5 ++++- public/stylesheets/new_user.css | 4 +++- public/stylesheets/public.css | 2 +- 13 files changed, 114 insertions(+), 32 deletions(-) diff --git a/app/views/courses/_course_activity.html.erb b/app/views/courses/_course_activity.html.erb index aa99236df..b79964a8d 100644 --- a/app/views/courses/_course_activity.html.erb +++ b/app/views/courses/_course_activity.html.erb @@ -68,13 +68,22 @@ } } - function expand_reply_input(id) { - $(id).toggle(); - } - $(function () { init_activity_KindEditor_data(<%= activity.id%>, null, "87%"); showNormalImage('activity_description_<%= activity.id %>'); + if($("#intro_content_<%= activity.id %>").height() > 360) { + $("#intro_content_show_<%= activity.id %>").show(); + } + $("#intro_content_show_<%= activity.id %>").click(function(){ + $("#activity_description_<%= activity.id %>").toggleClass("maxh360"); + $("#intro_content_show_<%= activity.id %>").hide(); + $("#intro_content_hide_<%= activity.id %>").show(); + }); + $("#intro_content_hide_<%= activity.id %>").click(function(){ + $("#activity_description_<%= activity.id %>").toggleClass("maxh360"); + $("#intro_content_hide_<%= activity.id %>").hide(); + $("#intro_content_show_<%= activity.id %>").show(); + }); }); <% if activity && activity.course_act%> diff --git a/app/views/users/_course_homework.html.erb b/app/views/users/_course_homework.html.erb index df42f6ee9..4bde4476d 100644 --- a/app/views/users/_course_homework.html.erb +++ b/app/views/users/_course_homework.html.erb @@ -43,9 +43,15 @@
截止时间:<%= activity.end_time.to_s %>
-
- <%= activity.description.html_safe %> +
+
+ <%= activity.description.html_safe %> +
+
+ + +
<%# if is_teacher%>