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