Disables teh button when clicked change password.
This commit is contained in:
parent
cb6e16ab5c
commit
682ed7ff8f
|
@ -210,6 +210,7 @@ $(document).ready(function () {
|
|||
var post = $("#passwordform").serialize();
|
||||
$('#passwordchanged').hide();
|
||||
$('#passworderror').hide();
|
||||
$("#passwordbutton").attr('disabled', 'disabled');
|
||||
// Ajax foo
|
||||
$.post(OC.generateUrl('/settings/personal/changepassword'), post, function (data) {
|
||||
if (data.status === "success") {
|
||||
|
@ -230,6 +231,7 @@ $(document).ready(function () {
|
|||
);
|
||||
}
|
||||
}
|
||||
$("#passwordbutton").removeAttr('disabled');
|
||||
});
|
||||
return false;
|
||||
} else {
|
||||
|
@ -243,7 +245,6 @@ $(document).ready(function () {
|
|||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$('#displayName').keyUpDelayedOrEnter(changeDisplayName);
|
||||
|
|
Loading…
Reference in New Issue