Skip to content

Commit

Permalink
Merge pull request #11451 from nextcloud/stable14_10833
Browse files Browse the repository at this point in the history
[stable14] Re-enable upload button after updating Avatar
  • Loading branch information
MorrisJobke authored Oct 1, 2018
2 parents 48b48fa + 875d1b0 commit 99a705f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions settings/js/settings/personalInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function updateAvatar (hidedefault) {
$('#removeavatar').removeClass('hidden').addClass('inlineblock');
}
}, user.displayName);
$('#uploadavatar').prop('disabled', false);
}

function showAvatarCropper () {
Expand Down Expand Up @@ -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/'),
Expand Down Expand Up @@ -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();
});

Expand Down

0 comments on commit 99a705f

Please sign in to comment.