Fixed hide delete and edit profile-/banner-image buttons after image deletion

This commit is contained in:
buddha87 2016-07-06 11:13:03 +02:00
parent 04b0979584
commit d7e2583d23
2 changed files with 7 additions and 2 deletions

View File

@ -110,12 +110,15 @@ function resetProfileImage(json) {
if (json.type == 'profile') {
$('.space-profile-image-' + json.space_id).attr('src', json.defaultUrl);
$('.space-profile-acronym-' + json.space_id).removeClass('hidden');
$('.space-profile-image-' + json.space_id).addClass('hidden');
$('#deleteLinkPost_modal_profileimagedelete').hide();
$('#profile-image-upload-edit-button').hide();
} else if (json.type == "banner") {
$('#space-banner-image').attr('src', json.defaultUrl);
$('#deleteLinkPost_modal_bannerimagedelete').hide();
$('#banner-image-upload-edit-button').hide();
}
$('.image-upload-buttons').hide();

View File

@ -117,6 +117,8 @@ function resetProfileImage(json) {
$('#profile-image-upload-edit-button').hide();
} else if (json.type == "banner") {
$('#user-banner-image').attr('src', json.defaultUrl);
$('#deleteLinkPost_modal_bannerimagedelete').hide();
$('#banner-image-upload-edit-button').hide();
}
$('.image-upload-buttons').hide();