Commit 5791be0090e5d33576105633555d34027d091c79
1 parent
b0159bc4
-Form and name validation removed
Showing
1 changed file
with
0 additions
and
20 deletions
Show diff stats
js/submit.js
@@ -67,26 +67,6 @@ $( | @@ -67,26 +67,6 @@ $( | ||
67 | array.forEach( | 67 | array.forEach( |
68 | function(element) { | 68 | function(element) { |
69 | switch (element.name) { | 69 | switch (element.name) { |
70 | - case 'name' : | ||
71 | - if (element.value.length === 0) { | ||
72 | - $('#name-block') | ||
73 | - .addClass('has-error'); | ||
74 | - isValid = false; | ||
75 | - } else { | ||
76 | - $('#name-block') | ||
77 | - .removeClass('has-error'); | ||
78 | - } | ||
79 | - break; | ||
80 | - case 'phone' : | ||
81 | - if (element.value.length === 0) { | ||
82 | - $('#phone-block') | ||
83 | - .addClass('has-error'); | ||
84 | - isValid = false; | ||
85 | - } else { | ||
86 | - $('#phone-block') | ||
87 | - .removeClass('has-error'); | ||
88 | - } | ||
89 | - break; | ||
90 | case 'email' : | 70 | case 'email' : |
91 | if ((element.value.length === 0) || !re.test(element.value.toLowerCase())) { | 71 | if ((element.value.length === 0) || !re.test(element.value.toLowerCase())) { |
92 | $('#email-block') | 72 | $('#email-block') |