Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jeff Balicki
/
FP_Canada
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d17695dc
authored
2022-03-27 20:49:05 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ss
1 parent
0f6df167
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
wp-content/themes/understrap-child/page-templates/numbers-page.php
wp-content/themes/understrap-child/page-templates/numbers-page.php
View file @
d17695d
...
...
@@ -49,7 +49,7 @@ get_template_part( 'global-templates/numbers_hero' );
</div>
<!-- #content -->
</div>
<!-- #full-width-page-wrapper -->
<div
class=
"modal fade
"
id=
"exampleModalLong"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"exampleModalLongTitle"
aria-hidden=
"true"
>
<div
class=
"modal fade"
id=
"exampleModalLong"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"exampleModalLongTitle"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
...
...
@@ -63,7 +63,7 @@ get_template_part( 'global-templates/numbers_hero' );
</div>
</div>
</div>
<div
class=
"modal fade
"
id=
"exampleModal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"exampleModalLongTitle"
aria-hidden=
"true"
>
<div
class=
"modal fade"
id=
"exampleModal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"exampleModalLongTitle"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
...
...
@@ -80,24 +80,24 @@ get_template_part( 'global-templates/numbers_hero' );
<script
type=
"text/javascript"
>
jQuery
(
document
).
ready
(
function
(
$
)
{
$
(
'#exampleModalLong .wpcf7-submit'
).
attr
(
'disabled'
,
'disabled'
);
$
(
document
).
on
(
"change"
,
"#exampleModalLong input , #exampleModalLong
textarea"
,
function
()
{
$
(
document
).
on
(
"change"
,
"#exampleModalLong input , #exampleModalLong textarea"
,
function
()
{
var
empty
=
false
;
$
(
'input.wpcf7-validates-as-required'
).
each
(
function
()
{
$
(
'
#exampleModalLong
input.wpcf7-validates-as-required'
).
each
(
function
()
{
if
(
$
(
this
).
val
()
==
''
)
{
empty
=
true
;
}
});
if
(
$
(
'input[name="topics[]"]:checked'
).
length
==
0
)
{
if
(
$
(
'
#exampleModalLong
input[name="topics[]"]:checked'
).
length
==
0
)
{
empty
=
true
;
}
if
(
!
$
(
'input[name="acceptance[]"]'
).
is
(
":checked"
))
{
if
(
!
$
(
'
#exampleModalLong
input[name="acceptance[]"]'
).
is
(
":checked"
))
{
empty
=
true
;
}
if
(
empty
)
{
$
(
'.wpcf7-submit'
).
attr
(
'disabled'
,
'disabled'
);
$
(
'
#exampleModalLong
.wpcf7-submit'
).
attr
(
'disabled'
,
'disabled'
);
}
else
{
$
(
'.wpcf7-submit'
).
removeAttr
(
'disabled'
);
$
(
'
#exampleModalLong
.wpcf7-submit'
).
removeAttr
(
'disabled'
);
}
});
});
...
...
Please
register
or
sign in
to post a comment