X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/04bce28b705a6ca33d2c9b19aa783f588a99c8e0..c7cf228372bee18d84b14fc4089a758bc157fe76:/apps/workbench/app/views/application/report_issue_popup.js.erb diff --git a/apps/workbench/app/views/application/report_issue_popup.js.erb b/apps/workbench/app/views/application/report_issue_popup.js.erb deleted file mode 100644 index 6795c091fc..0000000000 --- a/apps/workbench/app/views/application/report_issue_popup.js.erb +++ /dev/null @@ -1,16 +0,0 @@ -$("#report-issue-modal-window").html("<%= escape_javascript(render partial: 'report_issue_popup') %>"); -$("#report-issue-modal-window .modal").modal('show'); - -// Disable the submit button on modal loading -$submit = $('#report-issue-submit'); -$submit.attr('disabled', true); - -// capture events to enable submit button when applicable -$('#report_issue_text').bind('input propertychange', function() { - var problem_desc = document.forms["report-issue-form"]["report_issue_text"].value; - if (problem_desc === null || problem_desc === "") { - $submit.attr('disabled', true) - } else { - $submit.removeAttr('disabled'); - } -});