From a12560d8c593cb466608c58bc173d4a0bfdc7107 Mon Sep 17 00:00:00 2001 From: Tobia De Koninck Date: Fri, 24 Aug 2018 15:15:16 +0200 Subject: [PATCH] Re-enable upload button after updating Avatar fixes #8623 Signed-off-by: Tobia De Koninck --- settings/js/settings/personalInfo.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/settings/js/settings/personalInfo.js b/settings/js/settings/personalInfo.js index c9da3c6ebe..9e169ee343 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(); });