From d44bbe9de112372cf0755a2e94e7da6a1587d22d Mon Sep 17 00:00:00 2001 From: z9hang Date: Mon, 23 Mar 2015 17:36:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E9=80=9A=E7=9F=A5=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E6=96=B0=E5=BB=BA=E9=80=9A=E7=9F=A5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/news/_course_form.html.erb | 4 ++-- app/views/news/_course_news.html.erb | 8 ++++---- public/javascripts/course.js | 5 ++++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/app/views/news/_course_form.html.erb b/app/views/news/_course_form.html.erb index 6963ffe8e..0bea4b773 100644 --- a/app/views/news/_course_form.html.erb +++ b/app/views/news/_course_form.html.erb @@ -1,7 +1,7 @@ <%= error_messages_for @news %> -
+

<%= is_new ? l(:bale_news_notice):l(:bale_edit_notice)%> -

+

<%= f.text_field :title, :required => true, :size => 60, :style => "width:468px;", :onkeyup => "regexTitle();", :maxlength => 60 %> diff --git a/app/views/news/_course_news.html.erb b/app/views/news/_course_news.html.erb index 8dc1b2a89..75ea61e1d 100644 --- a/app/views/news/_course_news.html.erb +++ b/app/views/news/_course_news.html.erb @@ -70,8 +70,8 @@ <%= link_to(btn_tips,new_course_news_path(@course), :class => 'problem_new_btn fl c_dorange', :onclick => 'showAndScrollTo("add-news", "news_title"); return false;') %> - -

diff --git a/public/javascripts/course.js b/public/javascripts/course.js index 651013973..4204180d5 100644 --- a/public/javascripts/course.js +++ b/public/javascripts/course.js @@ -24,7 +24,10 @@ function show_more_msg() { $("#course_description").toggleClass("course_description_none"); } - +function news_show_more_des(id) +{ + $('#news_description_' + id).toggleClass("news_description_none"); +} function bid_show_more_des(id) { $("#bid_description_" + id).toggleClass("news_description_none");