diff --git a/app/views/admin/poll/questions/answers/images/destroy.js.erb b/app/views/admin/poll/questions/answers/images/destroy.js.erb index 3a10a1cff..137451dda 100644 --- a/app/views/admin/poll/questions/answers/images/destroy.js.erb +++ b/app/views/admin/poll/questions/answers/images/destroy.js.erb @@ -1,3 +1,3 @@ -$(".delete").bind("ajax:success", function () { - $(this).closest("div").fadeOut() -}) +$(".delete").on("ajax:success", function () { + $(this).closest("div").fadeOut(); +});