From c527b59ba8053eae0075e49d7ee015d61d03bfc7 Mon Sep 17 00:00:00 2001 From: 2015E8018661112 <794811315@qq.com> Date: Thu, 10 Dec 2015 10:31:14 +0800 Subject: [PATCH] update --- app/views/comments/create.js.haml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 app/views/comments/create.js.haml diff --git a/app/views/comments/create.js.haml b/app/views/comments/create.js.haml new file mode 100755 index 0000000..7c7cde0 --- /dev/null +++ b/app/views/comments/create.js.haml @@ -0,0 +1,4 @@ +- if @result[:status] + $("#article_comment_content").val(''); + $('#no_comments').remove(); + $("#paginate").prepend("#{escape_javascript(render partial: 'articles/comment', locals: {comment: @comment})}"); \ No newline at end of file