Reset the error count on contact form submission success

This commit is contained in:
Kevin MacMartin 2019-04-28 23:43:51 -04:00
parent 63021ea93c
commit b19db9b709

View file

@ -93,6 +93,7 @@
this.$http.post("/api/contact-submit" + env.apiToken, JSON.stringify(this.form)).then((response) => {
// Success
$(this.$el).find(":input").attr("disabled", true);
this.errorCount = 0;
this.submitSuccess = true;
this.submitting = false;
}, (response) => {