@@ -148,8 +148,7 @@ discard block |
||
| 148 | 148 | document.getElementById("' . $formId . '").submit(); |
| 149 | 149 | } |
| 150 | 150 | </script>'; |
| 151 | - } |
|
| 152 | - elseif ($this->version == 'v3') { |
|
| 151 | + } elseif ($this->version == 'v3') { |
|
| 153 | 152 | |
| 154 | 153 | $action = array_get($configuration, 'action', 'homepage'); |
| 155 | 154 | |
@@ -159,8 +158,7 @@ discard block |
||
| 159 | 158 | if($js_custom_validation) { |
| 160 | 159 | |
| 161 | 160 | $validate_function = ($js_custom_validation) ? "{$js_custom_validation}(token);" : ''; |
| 162 | - } |
|
| 163 | - else { |
|
| 161 | + } else { |
|
| 164 | 162 | |
| 165 | 163 | $js_then_callback = array_get($configuration, 'callback_then', ''); |
| 166 | 164 | $js_callback_catch = array_get($configuration, 'callback_catch', ''); |