From 4ffc1b2dc2d627046172150065b9946cfe834b93 Mon Sep 17 00:00:00 2001 From: 2015E8018661112 <794811315@qq.com> Date: Thu, 10 Dec 2015 10:31:13 +0800 Subject: [PATCH] update --- app/views/comments/destroy.js.haml | 3 --- app/views/comments/edit.js.haml | 3 --- 2 files changed, 6 deletions(-) delete mode 100755 app/views/comments/destroy.js.haml delete mode 100755 app/views/comments/edit.js.haml diff --git a/app/views/comments/destroy.js.haml b/app/views/comments/destroy.js.haml deleted file mode 100755 index 15d728b..0000000 --- a/app/views/comments/destroy.js.haml +++ /dev/null @@ -1,3 +0,0 @@ -- if @result[:status] - :plain - $("#comment_#{@comment.id}").remove(); \ No newline at end of file diff --git a/app/views/comments/edit.js.haml b/app/views/comments/edit.js.haml deleted file mode 100755 index 9b4577f..0000000 --- a/app/views/comments/edit.js.haml +++ /dev/null @@ -1,3 +0,0 @@ -:plain - $("#comment_form").html("#{escape_javascript(render partial: 'articles/comment_form')}"); - location.hash = "#comment_form"; \ No newline at end of file