From 8f0a0c805eaa50ffa85ebdf525c3558f71d56409 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 26 Jul 2017 22:54:23 +0200 Subject: [PATCH] Fix show password button for password change * fix the show password button on the personal page * before: if the password change failed the show password icon was not shown again * after: show password icon is visible Signed-off-by: Morris Jobke --- settings/js/settings/personalInfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/js/settings/personalInfo.js b/settings/js/settings/personalInfo.js index 306994a709..89b37d291c 100644 --- a/settings/js/settings/personalInfo.js +++ b/settings/js/settings/personalInfo.js @@ -169,7 +169,6 @@ $(document).ready(function () { if (data.status === "success") { $("#passwordbutton").after(""); removeloader(); - $(".personal-show-label").show(); $('#pass1').val(''); $('#pass2').val('').change(); } @@ -185,6 +184,7 @@ $(document).ready(function () { } ); } + $(".personal-show-label").show(); $(".password-loading").remove(); $("#passwordbutton").removeAttr('disabled'); });