Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
clientside_validation
Commits
fc51dce3
Commit
fc51dce3
authored
Oct 02, 2019
by
sjerdo
Committed by
nikunj
Oct 02, 2019
Browse files
Issue #2914383 by sjerdo, dmsmidt: Clientside Validation States JS error for radios
parent
8f3ce6c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
clientside_validation_states/clientside_validation_states.js
clientside_validation_states/clientside_validation_states.js
+9
-2
No files found.
clientside_validation_states/clientside_validation_states.js
View file @
fc51dce3
...
...
@@ -24,8 +24,15 @@
return
required
!==
0
;
}
$
(
document
).
bind
(
'
state:required
'
,
function
(
e
)
{
if
(
e
.
trigger
)
{
$
(
e
.
target
).
valid
();
if
(
!
e
.
trigger
)
{
return
;
}
var
$target
=
$
(
e
.
target
).
not
(
'
:hidden
'
);
if
(
!
$target
.
is
(
'
input
'
)
&&
!
$target
.
is
(
'
select
'
)
&&
!
$target
.
is
(
'
textarea
'
))
{
$target
=
$target
.
find
(
'
input,select,textarea
'
).
not
(
'
:hidden
'
);
}
if
(
$target
.
length
)
{
$target
.
valid
();
}
});
$
(
document
).
bind
(
'
clientsideValidationInitialized
'
,
function
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment