Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>
  • Loading branch information
MorrisJobke committed Jul 26, 2017
commit 1f82223883c3048a441497e45b3ac9f6c4a1b258
2 changes: 1 addition & 1 deletion settings/js/personal.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,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();
}
Expand All @@ -184,6 +183,7 @@ $(document).ready(function () {
}
);
}
$(".personal-show-label").show();
$(".password-loading").remove();
$("#passwordbutton").removeAttr('disabled');
});
Expand Down