X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/964ab3dd90ff1508efc0c77378cde2b3a4da1029..ae34bc2de285f5bce4a3a6537d454a62f2fa52e6:/apps/workbench/app/assets/javascripts/report_issue.js diff --git a/apps/workbench/app/assets/javascripts/report_issue.js b/apps/workbench/app/assets/javascripts/report_issue.js index f3c323c63b..539489d5fb 100644 --- a/apps/workbench/app/assets/javascripts/report_issue.js +++ b/apps/workbench/app/assets/javascripts/report_issue.js @@ -8,14 +8,15 @@ $(document). } $('div').remove('.modal-footer-status'); - $.ajax('/'). - success(function(data, status, jqxhr) { + $.ajax('/report_issue', { + type: 'POST', + data: $(this).parents('form').serialize() + }).success(function(data, status, jqxhr) { var $sendButton = $('#report-issue-submit'); $sendButton.html('Report sent'); $('div').remove('.modal-footer-status'); $('.modal-footer').append('

'); - }). - fail(function(jqxhr, status, error) { + }).fail(function(jqxhr, status, error) { var $sendButton = $('#report-issue-submit'); if ($sendButton && $sendButton.prop('disabled')) { $('div').remove('.modal-footer-status'); @@ -25,6 +26,6 @@ $(document). } var $cancelButton = $('#report-issue-cancel'); $cancelButton.html('Cancel'); - }); - + }); + return false; });