Commit 332a8033 authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

Un-done some changes to QfqForm#clearAllValidationStates().

parent 198c9ec8
......@@ -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();
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment