Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
4ce1908a
Commit
4ce1908a
authored
Nov 28, 2019
by
Carsten Rose
Browse files
Merge remote-tracking branch 'origin/B8091CheckBoxRequired' into B8091CheckBoxRequired
parents
5306e1cd
168741ef
Pipeline
#2800
passed with stages
in 2 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
javascript/src/Plugins/validator.js
View file @
4ce1908a
...
...
@@ -33,7 +33,7 @@
// ==========================
function
getValue
(
$el
)
{
return
$el
.
is
(
'
[type="checkbox"]
'
)
?
!!
$
(
'
[name="
'
+
$el
.
attr
(
'
name
'
)
+
'
"]:checked
'
).
length
:
return
$el
.
is
(
'
[type="checkbox"]
'
)
?
$el
.
prop
(
'
checked
'
)
:
$el
.
is
(
'
[type="radio"]
'
)
?
!!
$
(
'
[name="
'
+
$el
.
attr
(
'
name
'
)
+
'
"]:checked
'
).
length
:
$el
.
is
(
'
select[multiple]
'
)
?
(
$el
.
val
()
||
[]).
length
:
$el
.
val
()
...
...
@@ -49,7 +49,7 @@
this
.
update
()
this
.
$element
.
on
(
'
input.bs.validator change.bs.validator
focusout.bs.validator
'
,
$
.
proxy
(
this
.
onInput
,
this
))
this
.
$element
.
on
(
'
focusout.bs.validator
'
,
$
.
proxy
(
this
.
onInput
,
this
))
this
.
$element
.
on
(
'
submit.bs.validator
'
,
$
.
proxy
(
this
.
onSubmit
,
this
))
this
.
$element
.
on
(
'
reset.bs.validator
'
,
$
.
proxy
(
this
.
reset
,
this
))
...
...
@@ -57,7 +57,7 @@
var
$this
=
$
(
this
)
var
target
=
$this
.
attr
(
'
data-match
'
)
$
(
target
).
on
(
'
inp
ut.bs.validator
'
,
function
(
e
)
{
$
(
target
).
on
(
'
focuso
ut.bs.validator
'
,
function
(
e
)
{
getValue
(
$this
)
&&
$this
.
trigger
(
'
input.bs.validator
'
)
})
})
...
...
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