-// reset form input fields, for the next time around
-function reset_form() {
- $('#report_issue_text').val("");
- $('#additional_info').val("");
-}
+// 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;
+ $submit.prop('disabled', (problem_desc === null) || (problem_desc === ""));
+});