diff --git a/app/views/news/_course_form.html.erb b/app/views/news/_course_form.html.erb
index 91b35670c..7ce42439a 100644
--- a/app/views/news/_course_form.html.erb
+++ b/app/views/news/_course_form.html.erb
@@ -3,9 +3,11 @@
<%= is_new ? l(:bale_news_notice):l(:bale_edit_notice)%>
-
<%= f.text_field :title, :required => true, :size => 60, :style => "width:488px;" %>
+
<%= f.text_field :title, :required => true, :size => 60, :style => "width:468px;", :onblur => "regexTitle();" %>
+
(60个字符以内)
-
<%= f.text_area :description, :required => true, :cols => 60, :rows => 11, :class => 'wiki-edit', :style => "width:490px;" %>
+
<%= f.text_area :description, :required => true, :cols => 60, :rows => 11, :class => 'wiki-edit', :style => "width:470px;", :onblur => "regexDescription();" %>
+
<%= render :partial => 'attachments/form', :locals => {:container => @news} %>
diff --git a/app/views/news/_course_news.html.erb b/app/views/news/_course_news.html.erb
index adb2ce283..fdf12c06d 100644
--- a/app/views/news/_course_news.html.erb
+++ b/app/views/news/_course_news.html.erb
@@ -3,6 +3,59 @@
label_tips = l(:label_course_news)
%>
+
+
<%= label_tips %>
@@ -16,7 +69,8 @@
<%= labelled_form_for @news, :url => course_news_index_path(@course),
:html => {:id => 'news-form', :multipart => true} do |f| %>
<%= render :partial => 'news/course_form', :locals => {:f => f, :is_new => true} %>
- <%= submit_tag l(:button_create), :class => 'whiteButton m3p10 h30', :name => nil %> |
+ <%#= submit_tag l(:button_create), :class => 'whiteButton m3p10 h30', :name => nil %>
+ <%= link_to l(:button_create), "#", :onclick => 'submitNews();', :class => 'whiteButton m3p10' %>|
<%= preview_link preview_news_path(:course_id => @course), 'news-form', target='preview', {:class => 'whiteButton m3p10'} %>
|
<%= link_to l(:button_cancel), "#", :onclick => '$("#add-news").hide()', :class => 'whiteButton m3p10' %>
diff --git a/app/views/news/_course_show.html.erb b/app/views/news/_course_show.html.erb
index eb4b5e8b7..c6661d9fe 100644
--- a/app/views/news/_course_show.html.erb
+++ b/app/views/news/_course_show.html.erb
@@ -1,3 +1,56 @@
+
+
<%= watcher_link(@news, User.current) %>
<%= link_to(l(:button_edit),
@@ -15,7 +68,8 @@
<%= labelled_form_for :news, @news, :url => news_path(@news),
:html => { :id => 'news-form', :multipart => true, :method => :put } do |f| %>
<%= render :partial => 'course_form', :locals => { :f => f, :is_new => false } %>
- <%= submit_tag l(:button_save) %>
+ <%#= submit_tag l(:button_save) %>
+ <%= link_to l(:button_save), "#", :onclick => 'submitNews();' %>
<%= preview_link preview_news_path(:course_id => @course, :id => @news), 'news-form',target='preview',{:class => ''} %> |
<%= link_to l(:button_cancel), "#", :onclick => '$("#edit-news").hide(); return false;' %>
<% end %>