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(''); + }