Commit 5791be0090e5d33576105633555d34027d091c79

Authored by Alexey Boroda
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 67 array.forEach(
68 68 function(element) {
69 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 70 case 'email' :
91 71 if ((element.value.length === 0) || !re.test(element.value.toLowerCase())) {
92 72 $('#email-block')
... ...