fixed deletion button

This commit is contained in:
nilsding 2014-12-13 15:40:31 +01:00
parent 461d48556b
commit d25d45cbd4
1 changed files with 1 additions and 1 deletions

View File

@ -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