Removes spinner in case password is wrong as well.

This commit is contained in:
Raghu Nayyar 2016-09-01 18:54:19 +02:00
parent b30908ba5d
commit 6b2680f5f5
1 changed files with 1 additions and 1 deletions

View File

@ -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;