diff --git a/app/assets/javascripts/feedback.js b/app/assets/javascripts/feedback.js index 9ce685d9c..1430e54ac 100644 --- a/app/assets/javascripts/feedback.js +++ b/app/assets/javascripts/feedback.js @@ -27,10 +27,10 @@ function registerToasts() { } function registerSubmitButtonHandler() { - const submitButton = $('#submit-form-btn'); + const submitButton = $('#submit-feedback-form-btn'); // Invoke the hidden submit button inside the actual Rails form - $('#submit-form-btn-outside').click(() => { + $('#submit-feedback-form-btn-outside').click(() => { submitButton.click(); }); diff --git a/app/views/feedbacks/_feedback_form.html.erb b/app/views/feedbacks/_feedback_form.html.erb index 761f07cfb..d7d7edf68 100644 --- a/app/views/feedbacks/_feedback_form.html.erb +++ b/app/views/feedbacks/_feedback_form.html.erb @@ -45,7 +45,7 @@ <%# Submit %> <%# Dummy submit button, the actual submit button is in the modal footer %> - <%= f.submit 'Submit', id: 'submit-form-btn', style: 'display: none;' %> + <%= f.submit 'Submit', id: 'submit-feedback-form-btn', style: 'display: none;' %> <% end %> @@ -56,7 +56,7 @@ <%# Submit %> -