From 8a10f2ecd21a783cac5b0edd23c923a41e9cc801 Mon Sep 17 00:00:00 2001 From: radhika Date: Sun, 24 Aug 2014 08:11:13 -0400 Subject: [PATCH] 3112: report issue success event handling working in 404 error page. --- apps/workbench/app/assets/javascripts/report_issue.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/workbench/app/assets/javascripts/report_issue.js b/apps/workbench/app/assets/javascripts/report_issue.js index cc15b708da..a05cba5983 100644 --- a/apps/workbench/app/assets/javascripts/report_issue.js +++ b/apps/workbench/app/assets/javascripts/report_issue.js @@ -8,7 +8,7 @@ $(document). } $('div').remove('.modal-footer-status'); - $.ajax(). + $.ajax('/'). success(function(data, status, jqxhr) { var $sendButton = $('#report-issue-submit'); $sendButton.html('Report sent'); @@ -26,8 +26,6 @@ $(document). var $cancelButton = $('#report-issue-cancel'); var text = document.getElementById('report-issue-cancel').firstChild; $cancelButton.html('Cancel'); - }). - always(function(data, status, jqxhr) { }); }); -- 2.30.2