From 1f82223883c3048a441497e45b3ac9f6c4a1b258 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/personal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/js/personal.js b/settings/js/personal.js index effce9de07e..5d8a0b8b49e 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -168,7 +168,6 @@ $(document).ready(function () { if (data.status === "success") { $("#passwordbutton").after(""); removeloader(); - $(".personal-show-label").show(); $('#pass1').val(''); $('#pass2').val('').change(); } @@ -184,6 +183,7 @@ $(document).ready(function () { } ); } + $(".personal-show-label").show(); $(".password-loading").remove(); $("#passwordbutton").removeAttr('disabled'); });