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 <hey@morrisjobke.de>
This commit is contained in:
parent
174cd4f478
commit
8f0a0c805e
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,6 @@ $(document).ready(function () {
|
|||
if (data.status === "success") {
|
||||
$("#passwordbutton").after("<span class='checkmark icon icon-checkmark password-state'></span>");
|
||||
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');
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue