summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-09-27 17:27:12 +0200
committerGitHub <noreply@github.com>2018-09-27 17:27:12 +0200
commitc367f95afa406bb2efe1225a622c448bb0c56f20 (patch)
tree14ddddc41ba27f8fbd4c80f491fa21c4c46afffd /settings
parent02de67773c5ce1e38a90ce45b60ce249ed9a4042 (diff)
parenta12560d8c593cb466608c58bc173d4a0bfdc7107 (diff)
downloadnextcloud-server-c367f95afa406bb2efe1225a622c448bb0c56f20.tar.gz
nextcloud-server-c367f95afa406bb2efe1225a622c448bb0c56f20.zip
Merge pull request #10833 from nextcloud/fix_8623
Re-enable upload button after updating Avatar fixes #8623
Diffstat (limited to 'settings')
-rw-r--r--settings/js/settings/personalInfo.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/settings/js/settings/personalInfo.js b/settings/js/settings/personalInfo.js
index c9da3c6ebe8..9e169ee3436 100644
--- a/settings/js/settings/personalInfo.js
+++ b/settings/js/settings/personalInfo.js
@@ -67,6 +67,7 @@ function updateAvatar (hidedefault) {
$('#removeavatar').removeClass('hidden').addClass('inlineblock');
}
}, user.displayName);
+ $('#uploadavatar').prop('disabled', false);
}
function showAvatarCropper () {
@@ -308,7 +309,7 @@ $(document).ready(function () {
function (path) {
$('#displayavatar img').hide();
$('#displayavatar .avatardiv').addClass('icon-loading');
- $('#uploadavatar').prop('disabled', true)
+ $('#uploadavatar').prop('disabled', true);
$.ajax({
type: "POST",
url: OC.generateUrl('/avatar/'),
@@ -348,7 +349,7 @@ $(document).ready(function () {
$('#abortcropperbutton').click(function () {
$('#displayavatar .avatardiv').removeClass('icon-loading');
$('#displayavatar img').show();
- $('#uploadavatar').prop('disabled', false)
+ $('#uploadavatar').prop('disabled', false);
cleanCropper();
});