mirror of
https://github.com/humhub/humhub.git
synced 2025-01-18 22:58:06 +01:00
Fixed hide delete and edit profile-/banner-image buttons after image deletion
This commit is contained in:
parent
04b0979584
commit
d7e2583d23
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user