Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
54fe2d3d
Commit
54fe2d3d
authored
Nov 21, 2019
by
bbaer
Browse files
Required Show only implemented
parent
8c5a4d37
Changes
1
Hide whitespace changes
Inline
Side-by-side
javascript/src/QfqForm.js
View file @
54fe2d3d
...
...
@@ -67,6 +67,12 @@ var QfqNS = QfqNS || {};
this
.
form
=
new
n
.
Form
(
this
.
formId
,
false
);
}
if
(
$
(
'
#
'
+
QfqNS
.
escapeJqueryIdSelector
(
this
.
formId
)).
data
(
'
required-show-only
'
))
{
this
.
requiredShowOnly
=
true
;
}
else
{
this
.
requiredShowOnly
=
false
;
}
this
.
infoLockedButton
=
this
.
infoLockedButton
.
bind
(
this
);
// This is required when displaying validation messages, in order to activate the tab, which has validation
...
...
@@ -622,12 +628,17 @@ var QfqNS = QfqNS || {};
alert
=
new
n
.
Alert
(
"
Form is incomplete.
"
,
"
warning
"
);
alert
.
timeout
=
3000
;
alert
.
show
();
return
;
if
(
!
this
.
requiredShowOnly
)
{
return
;
}
}
// First, remove all validation states, in case a previous submit has set a validation state, thus we're not
// stockpiling them.
this
.
clearAllValidationStates
();
if
(
!
this
.
requiredShowOnly
)
{
this
.
clearAllValidationStates
();
}
submitReason
=
{
...
...
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