From d25d45cbd4f3f95b2122f064537e382699670b58 Mon Sep 17 00:00:00 2001 From: nilsding Date: Sat, 13 Dec 2014 15:40:31 +0100 Subject: [PATCH] fixed deletion button --- app/assets/javascripts/answerbox/destroy.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/answerbox/destroy.coffee b/app/assets/javascripts/answerbox/destroy.coffee index 2d97a536..4e161823 100644 --- a/app/assets/javascripts/answerbox/destroy.coffee +++ b/app/assets/javascripts/answerbox/destroy.coffee @@ -10,7 +10,7 @@ $(document).on "click", "button[name=ab-destroy]", -> answer: aid success: (data, status, jqxhr) -> if data.success - $("div.answer-box[data-id=#{aid}]").slideUp() + $("div.answerbox[data-id=#{aid}]").slideUp() showNotification data.message, data.success error: (jqxhr, status, error) -> console.log jqxhr, status, error