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");