From 15e4359329e3805fc9a4897982023c5937241924 Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Tue, 22 Sep 2015 17:27:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E8=AE=BA=E5=9D=9B=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E5=8F=96=E6=B6=88=E5=8E=9F=E6=9D=A5=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E7=9A=84=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/forums/index.html.erb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/views/forums/index.html.erb b/app/views/forums/index.html.erb index 22f460990..f7c74e9a7 100644 --- a/app/views/forums/index.html.erb +++ b/app/views/forums/index.html.erb @@ -83,6 +83,14 @@ function hideError(){ $("#error").html("").hide(); } + + function create_cancle(){ + $('#error').hide(); + $('#new_forum_div').slideToggle(); + $('#create_btn').parent().slideToggle(); + $("#forum_name").val(''); + $("#forum_desc").val(''); + }