diff --git a/app/views/news/_project_form.html.erb b/app/views/news/_project_form.html.erb
index 33613e5a7..b9698497d 100644
--- a/app/views/news/_project_form.html.erb
+++ b/app/views/news/_project_form.html.erb
@@ -28,7 +28,7 @@
<%= link_to l(:button_create), "javascript:void(0)", :onclick => 'submitNews();', :onmouseover => 'submitFocus(this);', :class => 'blue_btn fl c_white' %>
<%= link_to l(:button_cancel), project_news_index_path(@project), :onclick => '$("#add-news").hide()', :class => 'blue_btn grey_btn fl c_white' %>
<% else %>
- <%= link_to l(:button_save), "javascript:void(0)", :onclick => "submitNews();",:onmouseover => 'this.focus()',:class => 'blue_btn fl c_white' %>
+ <%= link_to l(:button_save), "javascript:void(0)", :onclick => "submitNews();",:onmouseover => 'this.focus()',:class => 'blue_btn fl c_white'%>
<%= link_to l(:button_cancel), news_path(@news), :class => 'blue_btn grey_btn fl c_white' %>
<% end %>
diff --git a/app/views/news/_project_show.html.erb b/app/views/news/_project_show.html.erb
index f95192d64..3ffbe6554 100644
--- a/app/views/news/_project_show.html.erb
+++ b/app/views/news/_project_show.html.erb
@@ -1,64 +1,6 @@
<%= l(:label_news) %>
-
<% if authorize_for('news', 'edit') %>
diff --git a/public/javascripts/project.js b/public/javascripts/project.js
index 18f249414..98c148372 100644
--- a/public/javascripts/project.js
+++ b/public/javascripts/project.js
@@ -265,6 +265,11 @@ function submitFocus(obj) {
$(obj).focus();
}
+function submitComment()
+{
+ $("#add_comment_form").submit();
+}
+
//当项目描述长度小于112px时,不显示更多按钮
$(function () {
// alert($("#course_description_content").height());
@@ -485,4 +490,4 @@ function judgeprojectname(){
name:{required : "请填写项目名称!",remote:'您已新建过同名项目,请修改项目名称!'}
}
});
-}
+}