diff options
author | Raghu Nayyar <hey@raghunayyar.com> | 2016-09-01 10:42:09 +0200 |
---|---|---|
committer | Raghu Nayyar <hey@raghunayyar.com> | 2016-09-17 14:38:26 +0200 |
commit | 682ed7ff8ff49e538ba0b12f06cddffc45593d05 (patch) | |
tree | 65122d1046767060abddc72587f48c9067305730 /settings/js/personal.js | |
parent | cb6e16ab5cf262997547a13013c83c864a4bc87f (diff) | |
download | nextcloud-server-682ed7ff8ff49e538ba0b12f06cddffc45593d05.tar.gz nextcloud-server-682ed7ff8ff49e538ba0b12f06cddffc45593d05.zip |
Disables teh button when clicked change password.
Diffstat (limited to 'settings/js/personal.js')
-rw-r--r-- | settings/js/personal.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index e0c99ae774d..41ddb835d9f 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -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); |