aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/js/views/submit.js3
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());