From 3811e0a3dfeaf720dc15989588cffd88b7aa62ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 22 Nov 2019 20:12:03 -0500 Subject: [PATCH] fix: #8042, dont show errors after clearing form --- public/src/client/account/edit/password.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/client/account/edit/password.js b/public/src/client/account/edit/password.js index 4f4353d6f8..964af3053e 100644 --- a/public/src/client/account/edit/password.js +++ b/public/src/client/account/edit/password.js @@ -76,12 +76,12 @@ define('forum/account/edit/password', ['forum/account/header', 'translator', 'zx currentPassword.val(''); password.val(''); password_confirm.val(''); + password_notify.parent().removeClass('show-success show-danger'); + password_confirm_notify.parent().removeClass('show-success show-danger'); passwordsmatch = false; passwordvalid = false; if (err) { - onPasswordChanged(); - onPasswordConfirmChanged(); return app.alertError(err.message); } if (parseInt(app.user.uid, 10) === parseInt(ajaxify.data.uid, 10)) {