fixed deletion button
This commit is contained in:
parent
461d48556b
commit
d25d45cbd4
|
@ -10,7 +10,7 @@ $(document).on "click", "button[name=ab-destroy]", ->
|
||||||
answer: aid
|
answer: aid
|
||||||
success: (data, status, jqxhr) ->
|
success: (data, status, jqxhr) ->
|
||||||
if data.success
|
if data.success
|
||||||
$("div.answer-box[data-id=#{aid}]").slideUp()
|
$("div.answerbox[data-id=#{aid}]").slideUp()
|
||||||
showNotification data.message, data.success
|
showNotification data.message, data.success
|
||||||
error: (jqxhr, status, error) ->
|
error: (jqxhr, status, error) ->
|
||||||
console.log jqxhr, status, error
|
console.log jqxhr, status, error
|
||||||
|
|
Loading…
Reference in New Issue