From 6e444da0957ff229d63e428e5c32df3ae4204232 Mon Sep 17 00:00:00 2001 From: 2015E8018661112 <794811315@qq.com> Date: Mon, 28 Dec 2015 13:38:49 +0800 Subject: [PATCH] update --- app/views/comments/update.js.haml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 app/views/comments/update.js.haml diff --git a/app/views/comments/update.js.haml b/app/views/comments/update.js.haml new file mode 100755 index 0000000..be98f3e --- /dev/null +++ b/app/views/comments/update.js.haml @@ -0,0 +1,4 @@ +- if @result[:status] + :plain + $("#comment_#{@comment.id}_body").html("#{@comment.content}"); + location.hash = "#comment_#{@comment.id}"; \ No newline at end of file