X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/21c6d252b279c9714419bf65da07e32246572238..fd658b2312b45a6010fe285d4d8adf364faa97b4:/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 index 6795c091fc..73830ee049 100644 --- a/apps/workbench/app/views/application/report_issue_popup.js.erb +++ b/apps/workbench/app/views/application/report_issue_popup.js.erb @@ -3,14 +3,10 @@ $("#report-issue-modal-window .modal").modal('show'); // Disable the submit button on modal loading $submit = $('#report-issue-submit'); -$submit.attr('disabled', true); +$submit.prop('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'); - } + $submit.prop('disabled', (problem_desc === null) || (problem_desc === "")); });