diff options
author | Struan Donald <struan@exo.org.uk> | 2013-08-05 16:01:22 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-08-05 16:01:22 +0100 |
commit | 9a22732b8faaab692174317ff6ca4d64e4f19f30 (patch) | |
tree | 50c406593799ba304eaab5ccb826b11cdcb1f422 | |
parent | b8df04c98df495492f98c7dbb69de991ac66bad6 (diff) |
Improve display of error messages on confirm screen
Hide start blurb and replace with errors in order to stop the screen
getting too long.
Fixes #77.
-rw-r--r-- | src/js/views/submit.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/views/submit.js b/src/js/views/submit.js index 0a66236..c3b8879 100644 --- a/src/js/views/submit.js +++ b/src/js/views/submit.js @@ -98,6 +98,7 @@ } } errorList += '</ul>'; + $('p.top').hide(); $('#errors').html(errorList).show(); } }, @@ -253,6 +254,8 @@ }, beforeSubmit: function() { + $('#errors').hide(); + $('p.top').show(); this.model.set('name', $('#form_name').val()); this.model.set('phone', $('#form_phone').val()); this.model.set('may_show_name', $('#form_may_show_name').val()); |