From 06009934d8426f6a1122152387831315c32943cb Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Sat, 13 Jun 2015 15:17:59 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=96=B0=E9=97=BB?=
=?UTF-8?q?=E6=97=A0=E6=B3=95=E7=BC=96=E8=BE=91=E6=88=90=E5=8A=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/news/_project_form.html.erb | 2 +-
app/views/news/_project_show.html.erb | 58 ---------------------------
public/javascripts/project.js | 7 +++-
3 files changed, 7 insertions(+), 60 deletions(-)
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:'您已新建过同名项目,请修改项目名称!'}
}
});
-}
+}