From 5792b59fc7b0fc67ae58b725742a78f6e73cca3e Mon Sep 17 00:00:00 2001 From: Yuki Date: Sun, 26 Apr 2015 15:51:47 +0530 Subject: [PATCH] fix issue described in https://twitter.com/mochizune/status/592271577871417344 --- app/assets/javascripts/questionbox/destroy.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/questionbox/destroy.coffee b/app/assets/javascripts/questionbox/destroy.coffee index 7fc1f005..edf69d68 100644 --- a/app/assets/javascripts/questionbox/destroy.coffee +++ b/app/assets/javascripts/questionbox/destroy.coffee @@ -22,7 +22,7 @@ $(document).on "click", "a[data-action=ab-question-destroy]", (ev) -> if btn[0].dataset.redirect != undefined window.location.href = btn[0].dataset.redirect else - $("div.answerbox[data-qId=#{qid}], div.questionbox[data-id=#{qid}]").slideUp() + $("div.answerbox[data-q-id=#{qid}], div.questionbox[data-id=#{qid}]").slideUp() showNotification data.message, data.success error: (jqxhr, status, error) -> console.log jqxhr, status, error