From 9fe827b5372735190f58105b406cc411bcd91279 Mon Sep 17 00:00:00 2001 From: nilsding Date: Sun, 28 Dec 2014 19:56:13 +0100 Subject: [PATCH] removed .button calls for destroy --- app/assets/javascripts/answerbox/destroy.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/assets/javascripts/answerbox/destroy.coffee b/app/assets/javascripts/answerbox/destroy.coffee index 111d3743..a26214a1 100644 --- a/app/assets/javascripts/answerbox/destroy.coffee +++ b/app/assets/javascripts/answerbox/destroy.coffee @@ -2,7 +2,6 @@ $(document).on "click", "a[data-action=ab-destroy]", (ev) -> ev.preventDefault() if confirm 'Are you sure?' btn = $(this) - btn.button "loading" aid = btn[0].dataset.aId $.ajax url: '/ajax/destroy_answer' # TODO: find a way to use rake routes instead of hardcoding them here @@ -16,5 +15,4 @@ $(document).on "click", "a[data-action=ab-destroy]", (ev) -> error: (jqxhr, status, error) -> console.log jqxhr, status, error showNotification "An error occurred, a developer should check the console for details", false - complete: (jqxhr, status) -> - btn.button "reset" \ No newline at end of file + complete: (jqxhr, status) -> \ No newline at end of file