3112: report issue success event handling working in 404 error page.
authorradhika <radhika@curoverse.com>
Sun, 24 Aug 2014 12:11:13 +0000 (08:11 -0400)
committerradhika <radhika@curoverse.com>
Sun, 24 Aug 2014 12:11:13 +0000 (08:11 -0400)
apps/workbench/app/assets/javascripts/report_issue.js

index cc15b708da0a8084a3fe786b6bb06449e8708195..a05cba59837b5ead95ca0ccd5aeea2a552d56792 100644 (file)
@@ -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) {
       });
 
   });