Reset user settings form before validation.

This commit is contained in:
Alex Tselegidis 2020-05-03 11:26:04 +02:00
parent b834869fd3
commit 17f99883c0

View file

@ -89,7 +89,7 @@
* @return {Boolean} Returns the validation result. * @return {Boolean} Returns the validation result.
*/ */
UserSettings.prototype.validate = function () { UserSettings.prototype.validate = function () {
$('#user .has-error').removeClass('has-error'); $('#current-user .has-error').removeClass('has-error');
try { try {
// Validate required fields. // Validate required fields.