Skip to content

Commit

Permalink
Merge pull request #436 from alphagov/update-url-report-problem
Browse files Browse the repository at this point in the history
Update report a problem url on submit
  • Loading branch information
bradwright committed Aug 13, 2014
2 parents 22c0cf4 + 1328fa3 commit ceb47ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/assets/javascripts/report-a-problem.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var ReportAProblem = {

disableSubmitButton: function() {
$('.report-a-problem-container .button').attr("disabled", true);
},
},

enableSubmitButton: function() {
$('.report-a-problem-container .button').attr("disabled", false);
Expand All @@ -25,6 +25,7 @@ var ReportAProblem = {

submit: function() {
$('.report-a-problem-container .error-notification').remove();
$('input#url').val(window.location);

ReportAProblem.disableSubmitButton();
$.ajax({
Expand Down

0 comments on commit ceb47ff

Please sign in to comment.