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
332a8033
Commit
332a8033
authored
Oct 07, 2016
by
Rafael Ostertag
Browse files
Un-done some changes to QfqForm#clearAllValidationStates().
parent
198c9ec8
Changes
1
Hide whitespace changes
Inline
Side-by-side
javascript/src/QfqForm.js
View file @
332a8033
...
...
@@ -708,7 +708,14 @@ var QfqNS = QfqNS || {};
n
.
QfqForm
.
prototype
.
clearAllValidationStates
=
function
()
{
// Reset any messages/states added by bootstrap-validator.
this
.
form
.
$form
.
validator
(
'
reset
'
);
// Reset any states added by a call to QfqForm#setValidationState()
$
(
'
.has-warning,.has-error,.has-success,.has-danger
'
).
removeClass
(
"
has-warning has-error has-success
"
+
"
has-danger
"
);
// Remove all messages received from server upon form submit.
$
(
'
[data-qfq=validation-message]
'
).
remove
();
};
...
...
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