ss
Showing
1 changed file
with
7 additions
and
7 deletions
| ... | @@ -49,7 +49,7 @@ get_template_part( 'global-templates/numbers_hero' ); | ... | @@ -49,7 +49,7 @@ get_template_part( 'global-templates/numbers_hero' ); |
| 49 | </div><!-- #content --> | 49 | </div><!-- #content --> |
| 50 | 50 | ||
| 51 | </div><!-- #full-width-page-wrapper --> | 51 | </div><!-- #full-width-page-wrapper --> |
| 52 | <div class="modal fade " id="exampleModalLong" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true"> | 52 | <div class="modal fade" id="exampleModalLong" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true"> |
| 53 | <div class="modal-dialog" role="document"> | 53 | <div class="modal-dialog" role="document"> |
| 54 | <div class="modal-content"> | 54 | <div class="modal-content"> |
| 55 | <div class="modal-header"> | 55 | <div class="modal-header"> |
| ... | @@ -63,7 +63,7 @@ get_template_part( 'global-templates/numbers_hero' ); | ... | @@ -63,7 +63,7 @@ get_template_part( 'global-templates/numbers_hero' ); |
| 63 | </div> | 63 | </div> |
| 64 | </div> | 64 | </div> |
| 65 | </div> | 65 | </div> |
| 66 | <div class="modal fade " id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true"> | 66 | <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true"> |
| 67 | <div class="modal-dialog" role="document"> | 67 | <div class="modal-dialog" role="document"> |
| 68 | <div class="modal-content"> | 68 | <div class="modal-content"> |
| 69 | <div class="modal-header"> | 69 | <div class="modal-header"> |
| ... | @@ -82,22 +82,22 @@ jQuery( document ).ready(function($) { | ... | @@ -82,22 +82,22 @@ jQuery( document ).ready(function($) { |
| 82 | $('#exampleModalLong .wpcf7-submit').attr('disabled', 'disabled'); | 82 | $('#exampleModalLong .wpcf7-submit').attr('disabled', 'disabled'); |
| 83 | $(document).on("change","#exampleModalLong input , #exampleModalLong textarea",function() { | 83 | $(document).on("change","#exampleModalLong input , #exampleModalLong textarea",function() { |
| 84 | var empty = false; | 84 | var empty = false; |
| 85 | $('input.wpcf7-validates-as-required').each(function() { | 85 | $('#exampleModalLong input.wpcf7-validates-as-required').each(function() { |
| 86 | if ($(this).val() == '') { | 86 | if ($(this).val() == '') { |
| 87 | empty = true; | 87 | empty = true; |
| 88 | } | 88 | } |
| 89 | }); | 89 | }); |
| 90 | 90 | ||
| 91 | if ($('input[name="topics[]"]:checked').length == 0) { | 91 | if ($('#exampleModalLong input[name="topics[]"]:checked').length == 0) { |
| 92 | empty = true; | 92 | empty = true; |
| 93 | } | 93 | } |
| 94 | if (!$('input[name="acceptance[]"]').is(":checked")) { | 94 | if (!$('#exampleModalLong input[name="acceptance[]"]').is(":checked")) { |
| 95 | empty = true; | 95 | empty = true; |
| 96 | } | 96 | } |
| 97 | if (empty) { | 97 | if (empty) { |
| 98 | $('.wpcf7-submit').attr('disabled', 'disabled'); | 98 | $('#exampleModalLong .wpcf7-submit').attr('disabled', 'disabled'); |
| 99 | } else { | 99 | } else { |
| 100 | $('.wpcf7-submit').removeAttr('disabled'); | 100 | $('#exampleModalLong .wpcf7-submit').removeAttr('disabled'); |
| 101 | } | 101 | } |
| 102 | }); | 102 | }); |
| 103 | }); | 103 | }); | ... | ... |
-
Please register or sign in to post a comment