Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/aerohub/hugo-identity-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Grosser <development@stp-ip.net>2017-06-28 11:38:44 +0300
committerGitHub <noreply@github.com>2017-06-28 11:38:44 +0300
commit9b2e2109b20c640564cd38a9ad35f568b2ea9a3b (patch)
tree55ecd8955328fbc37a3242b1f1b34afc8d65c171
parentf4bef4e9e0c46f434b7f8b1e8654628736be5fcd (diff)
parent2fc19851673b7fb2c8408c150065d93e43aeaf75 (diff)
Merge pull request #17 from stp-ip/upstreamChanges
Revalidate on input change
-rw-r--r--static/assets/js/contact.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/static/assets/js/contact.js b/static/assets/js/contact.js
index b24132b..ca079ed 100644
--- a/static/assets/js/contact.js
+++ b/static/assets/js/contact.js
@@ -1,5 +1,12 @@
-// Contact form validation
-$( document ).ready(function() {
+// Initial form validation
+$(document).ready(function() {
+ $.validate({
+ modules : 'html5, toggleDisabled'
+ });
+});
+
+// Revalidate on change
+$('form[id=contactForm]').change(function() {
$.validate({
modules : 'html5, toggleDisabled'
});