Removes spinner in case password is wrong as well.
This commit is contained in:
parent
b30908ba5d
commit
6b2680f5f5
|
@ -225,7 +225,6 @@ $(document).ready(function () {
|
|||
// Ajax foo
|
||||
$.post(OC.generateUrl('/settings/personal/changepassword'), post, function (data) {
|
||||
if (data.status === "success") {
|
||||
$(".password-loading").remove();
|
||||
$("#passwordbutton").after("<span class='checkmark icon icon-checkmark password-state'></span>");
|
||||
removeloader();
|
||||
$(".personal-show-label").show();
|
||||
|
@ -246,6 +245,7 @@ $(document).ready(function () {
|
|||
);
|
||||
}
|
||||
}
|
||||
$(".password-loading").remove();
|
||||
$("#passwordbutton").removeAttr('disabled');
|
||||
});
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue