Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
clientside_validation
Commits
51af151e
Commit
51af151e
authored
Jan 03, 2013
by
Jelle Sebreghts
Browse files
Issue #1705112 by nishyaadi: Checkboxes validation.
parent
5baf6968
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
clientside_validation.js
View file @
51af151e
...
...
@@ -236,14 +236,11 @@
groupkey
=
""
;
jQuery
.
each
(
self
.
forms
[
f
].
checkboxrules
,
function
(
r
)
{
groupkey
=
r
+
'
_group
'
;
self
.
groups
[
f
][
groupkey
]
=
""
;
self
.
groups
[
f
][
groupkey
]
=
[]
;
jQuery
.
each
(
this
,
function
(){
var
i
=
0
;
$
(
this
[
2
]).
find
(
'
input[type=checkbox]
'
).
each
(
function
(){
if
(
i
>
0
){
self
.
groups
[
f
][
groupkey
]
+=
'
'
;
}
self
.
groups
[
f
][
groupkey
]
+=
$
(
this
).
attr
(
'
name
'
);
self
.
groups
[
f
][
groupkey
].
push
(
$
(
this
).
attr
(
'
name
'
));
i
++
;
});
});
...
...
@@ -256,14 +253,11 @@
groupkey
=
""
;
jQuery
.
each
(
self
.
forms
[
f
].
daterangerules
,
function
(
r
)
{
groupkey
=
r
+
'
_group
'
;
self
.
groups
[
f
][
groupkey
]
=
""
;
self
.
groups
[
f
][
groupkey
]
=
[]
;
jQuery
.
each
(
this
,
function
(){
var
i
=
0
;
$
(
'
#
'
+
f
+
'
#
'
+
r
+
'
:input
'
).
not
(
'
input[type=image]
'
).
each
(
function
(){
if
(
i
>
0
){
self
.
groups
[
f
][
groupkey
]
+=
'
'
;
}
self
.
groups
[
f
][
groupkey
]
+=
$
(
this
).
attr
(
'
name
'
);
self
.
groups
[
f
][
groupkey
].
push
(
$
(
this
).
attr
(
'
name
'
));
i
++
;
});
});
...
...
@@ -276,14 +270,11 @@
groupkey
=
""
;
jQuery
.
each
(
self
.
forms
[
f
].
dateminrules
,
function
(
r
)
{
groupkey
=
r
+
'
_group
'
;
self
.
groups
[
f
][
groupkey
]
=
""
;
self
.
groups
[
f
][
groupkey
]
=
[]
;
jQuery
.
each
(
this
,
function
(){
var
i
=
0
;
$
(
'
#
'
+
f
+
'
#
'
+
r
+
'
:input
'
).
not
(
'
input[type=image]
'
).
each
(
function
(){
if
(
i
>
0
){
self
.
groups
[
f
][
groupkey
]
+=
'
'
;
}
self
.
groups
[
f
][
groupkey
]
+=
$
(
this
).
attr
(
'
name
'
);
self
.
groups
[
f
][
groupkey
].
push
(
$
(
this
).
attr
(
'
name
'
));
i
++
;
});
});
...
...
@@ -296,14 +287,11 @@
groupkey
=
""
;
jQuery
.
each
(
self
.
forms
[
f
].
datemaxrules
,
function
(
r
)
{
groupkey
=
r
+
'
_group
'
;
self
.
groups
[
f
][
groupkey
]
=
""
;
self
.
groups
[
f
][
groupkey
]
=
[]
;
jQuery
.
each
(
this
,
function
(){
var
i
=
0
;
$
(
'
#
'
+
f
+
'
#
'
+
r
+
'
:input
'
).
not
(
'
input[type=image]
'
).
each
(
function
(){
if
(
i
>
0
){
self
.
groups
[
f
][
groupkey
]
+=
'
'
;
}
self
.
groups
[
f
][
groupkey
]
+=
$
(
this
).
attr
(
'
name
'
);
self
.
groups
[
f
][
groupkey
].
push
(
$
(
this
).
attr
(
'
name
'
));
i
++
;
});
});
...
...
jquery-validate/jquery.validate.js
View file @
51af151e
This diff is collapsed.
Click to expand it.
jquery-validate/jquery.validate.min.js
View file @
51af151e
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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